use spawn for precompiled stuff

This commit is contained in:
Eero af Heurlin 2016-07-25 00:35:04 +03:00
parent 18b5785062
commit 9487df479c
2 changed files with 3 additions and 3 deletions

View File

@ -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";
};

View File

@ -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";
};