mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-06-10 11:53:21 +03:00
Change publishVeh2 and 3 to call instead of spawn
Following 95b3174 it is now possible to use call to avoid suspension mid
execution as described in:
https://epochmod.com/forum/topic/43805-epoch-shed_safetyvehiclesqf-issue/?tab=comments#comment-292696
This commit is contained in:
@@ -84,10 +84,14 @@ if (_outcome != "PASS") then {
|
||||
|
||||
if(DZE_TRADER_SPAWNMODE) then {
|
||||
_object attachTo [_object_para, [0,0,-1.6]];
|
||||
uiSleep 1;
|
||||
WaitUntil{(([_object] call FNC_GetPos) select 2) < 0.1};
|
||||
detach _object;
|
||||
deleteVehicle _object_para;
|
||||
[_object,_object_para] spawn {
|
||||
_object = _this select 0;
|
||||
_object_para = _this select 1;
|
||||
uiSleep 1;
|
||||
waitUntil {([_object] call fnc_getPos) select 2 < 0.1};
|
||||
detach _object;
|
||||
deleteVehicle _object_para;
|
||||
};
|
||||
};
|
||||
|
||||
_object call fnc_veh_ResetEH;
|
||||
|
||||
Reference in New Issue
Block a user