mirror of
https://github.com/rambo/arma3_missions.git
synced 2024-08-30 16:52:13 +00:00
use spawn for precompiled stuff
This commit is contained in:
parent
18b5785062
commit
9487df479c
@ -69,7 +69,7 @@ while {true} do
|
|||||||
if (_handleDropoff) then
|
if (_handleDropoff) then
|
||||||
{
|
{
|
||||||
private _veh = [list _trg] call playerVehicleInList;
|
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};
|
waitUntil {isNull _handle};
|
||||||
breakOut "mainloop";
|
breakOut "mainloop";
|
||||||
};
|
};
|
||||||
|
@ -72,10 +72,10 @@ while {true} do
|
|||||||
{
|
{
|
||||||
private _newLZLocation = (lzList - [_lzLocation]) call BIS_fnc_SelectRandom;
|
private _newLZLocation = (lzList - [_lzLocation]) call BIS_fnc_SelectRandom;
|
||||||
private _veh = [list _trg] call playerVehicleInList;
|
private _veh = [list _trg] call playerVehicleInList;
|
||||||
private _handle = [_veh, _squad, _taskid] execVM "loadSquad.sqf";
|
private _handle = [_veh, _squad, _taskid] spawn loadSquad;
|
||||||
waitUntil {isNull _handle};
|
waitUntil {isNull _handle};
|
||||||
|
|
||||||
private _handle = [_newLZLocation, _veh, _squad, _taskid] execVM "createDropoffLZ.sqf";
|
private _handle = [_newLZLocation, _veh, _squad, _taskid] spawn createDropoffLZ;
|
||||||
waitUntil {isNull _handle};
|
waitUntil {isNull _handle};
|
||||||
breakOut "mainloop";
|
breakOut "mainloop";
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user