From 9487df479c46814d9db543444b58c68b2680f4e4 Mon Sep 17 00:00:00 2001 From: Eero af Heurlin Date: Mon, 25 Jul 2016 00:35:04 +0300 Subject: [PATCH] use spawn for precompiled stuff --- helotraining_rewrite.Altis/createDropoffLZ.sqf | 2 +- helotraining_rewrite.Altis/createPickupLZ.sqf | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/helotraining_rewrite.Altis/createDropoffLZ.sqf b/helotraining_rewrite.Altis/createDropoffLZ.sqf index a90897a..100819b 100644 --- a/helotraining_rewrite.Altis/createDropoffLZ.sqf +++ b/helotraining_rewrite.Altis/createDropoffLZ.sqf @@ -69,7 +69,7 @@ while {true} do if (_handleDropoff) then { private _veh = [list _trg] call playerVehicleInList; - private _handle = [_lzLocation, _veh, _squad, _taskid] execVM "ejectSquad.sqf"; + private _handle = [_lzLocation, _veh, _squad, _taskid] spawn ejectSquad; waitUntil {isNull _handle}; breakOut "mainloop"; }; diff --git a/helotraining_rewrite.Altis/createPickupLZ.sqf b/helotraining_rewrite.Altis/createPickupLZ.sqf index 9691cc3..751fdfa 100644 --- a/helotraining_rewrite.Altis/createPickupLZ.sqf +++ b/helotraining_rewrite.Altis/createPickupLZ.sqf @@ -72,10 +72,10 @@ while {true} do { private _newLZLocation = (lzList - [_lzLocation]) call BIS_fnc_SelectRandom; private _veh = [list _trg] call playerVehicleInList; - private _handle = [_veh, _squad, _taskid] execVM "loadSquad.sqf"; + private _handle = [_veh, _squad, _taskid] spawn loadSquad; waitUntil {isNull _handle}; - private _handle = [_newLZLocation, _veh, _squad, _taskid] execVM "createDropoffLZ.sqf"; + private _handle = [_newLZLocation, _veh, _squad, _taskid] spawn createDropoffLZ; waitUntil {isNull _handle}; breakOut "mainloop"; };