From 0c49e499b3e6933d799a3e08e63591fe0bc65ca0 Mon Sep 17 00:00:00 2001 From: Mister_Nebula <41904486+misternebula@users.noreply.github.com> Date: Sun, 7 Feb 2021 18:48:46 +0000 Subject: [PATCH] fix tractor beam --- QSB/DeathSync/RespawnOnDeath.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/QSB/DeathSync/RespawnOnDeath.cs b/QSB/DeathSync/RespawnOnDeath.cs index d81114e8..64c1549f 100644 --- a/QSB/DeathSync/RespawnOnDeath.cs +++ b/QSB/DeathSync/RespawnOnDeath.cs @@ -30,6 +30,7 @@ namespace QSB.DeathSync private HatchController _hatchController; private ShipCockpitController _cockpitController; private PlayerSpacesuit _spaceSuit; + private ShipTractorBeamSwitch _shipTractorBeam; public void Awake() => Instance = this; @@ -40,6 +41,7 @@ namespace QSB.DeathSync _playerResources = playerTransform.GetComponent(); _spaceSuit = Locator.GetPlayerSuit(); _playerSpawner = FindObjectOfType(); + _shipTractorBeam = FindObjectOfType(); _fluidDetector = Locator.GetPlayerCamera().GetComponentInChildren(); _playerSpawnPoint = GetSpawnPoint(); @@ -122,6 +124,7 @@ namespace QSB.DeathSync _cockpitController.Invoke("CompleteExitFlightConsole"); _hatchController.SetValue("_isPlayerInShip", false); _hatchController.Invoke("OpenHatch"); + _shipTractorBeam.ActivateTractorBeam(); } private SpawnPoint GetSpawnPoint(bool isShip = false)