FAForever / faf-coop-maps

Coop maps for FAF
8 stars 21 forks source link

UEF M4 Fix issue if engineer killed before teleport #440

Closed maudlin27 closed 4 months ago

maudlin27 commented 6 months ago

Fixes an issue where the engineer can be given the order to teleport but when the logic triggers the engineer is already dead.

Error that prompted the change: WARNING: Error running lua script: ...faforever\gamedata\lua.nx2\lua\scenarioframework.lua(921): Game object has been destroyed stack traceback: [C]: in function GetOrientation' ...faforever\gamedata\lua.nx2\lua\scenarioframework.lua(921): in functionFakeTeleportUnit' ...alliance\maps\scca_coop_e04\scca_coop_e04_script.lua(1227): in function `callbackFunction' ...\faforever\gamedata\lua.nx2\lua\scenariotriggers.lua(676): in function <...\faforever\gamedata\lua.nx2\lua\scenariotriggers.lua:618>