diff --git a/@AresModAchillesExpansion/addons/functions_f_ares/features/fn_TeleportPlayers.sqf b/@AresModAchillesExpansion/addons/functions_f_ares/features/fn_TeleportPlayers.sqf index f64080c7..7ed8b8e3 100644 --- a/@AresModAchillesExpansion/addons/functions_f_ares/features/fn_TeleportPlayers.sqf +++ b/@AresModAchillesExpansion/addons/functions_f_ares/features/fn_TeleportPlayers.sqf @@ -20,6 +20,14 @@ private _doHALO = (_additionalOption == 2); if (_doHALO) then { + // broadcast chute functions for HALO + if (isNil "Achilles_var_eject_init_done") then + { + publicVariable "Achilles_fnc_chute"; + publicVariableServer "Achilles_fnc_eject_passengers"; + Achilles_var_eject_init_done = true; + }; + // set the altitude _teleportLocation set [2, 3000]; }; @@ -34,10 +42,16 @@ while {!(_playersToTeleport isEqualto [])} do { sleep 1; }; - - _unit setVehiclePosition [_teleportLocation, [], 0, "FORM"]; - _unit setPos [getPos _unit select 0, getPos _unit select 1, _teleportLocation select 2]; - if (_doHALO) then {[_unit] call Achilles_fnc_chute}; + + if (_doHALO) then + { + _unit setPos _teleportLocation; + [_unit] remoteExec ["Achilles_fnc_chute", _unit] + } + else + { + _unit setVehiclePosition [_teleportLocation, [], 0, "FORM"]; + }; }; _playersToTeleport = [_playersToTeleport - [_unit_to_tp], _playersToTeleport - crew _unit_to_tp] select _includeVehicles;