Files
DayZ-Epoch/SQF/dayz_code/medical/load/unLoad_act.sqf
icomrade c3ed4e49e1 Replace sleep with uiSleep
see the below links for more info. uiSleep is based off of a more
accurate method of tracking time, whereas sleep can fluctuate depending
on application performance since it is based on framerate.
https://community.bistudio.com/wiki/uiSleep
https://community.bistudio.com/wiki/sleep_vs_uiSleep
https://community.bistudio.com/wiki/sleep
2016-02-17 13:03:17 -05:00

30 lines
645 B
Plaintext

// unLoad_act.sqf
// AUGUST 2010 - norrin
private ["_args","_vcl","_loop","_unit","_name","_crewVcl"];
_args = _this select 3;
_name = _args select 0;
_vcl = _args select 1;
_crewVcl = crew _vcl;
_name removeAction (_this select 2);
for [{ _loop = 0 },{ _loop < count _crewVcl },{ _loop = _loop + 1}] do
{
_unit = _crewVcl select _loop;
if (_unit getVariable "NORRN_unconscious") then
{
unassignVehicle _unit;
uiSleep 0.05;
_unit action ["EJECT", _vcl];
uiSleep 1;
_unit switchMove "";
_unit switchMove "ainjppnemstpsnonwrfldnon";
uiSleep 0.2;
norrnRalie = _unit;
publicVariable "norrnRalie";
};
uiSleep 0.1;
};