Files
DayZ-Epoch/SQF/dayz_code/medical/load/load_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

31 lines
726 B
Plaintext

// Load_act.sqf
// JULY 2010 - norrin
private ["_args","_dragger","_vcl","_wounded"];
_args = _this select 3;
_dragger = _args select 0;
_vcl = _args select 1;
_wounded = _args select 2;
r_drag_sqf = false;
r_action = false;
r_action_load = false;
call fnc_usec_medic_removeActions;
//_dragger removeAction NORRN_loadWoundedAction;
if ((_vcl emptyPositions "cargo") > 0) then
{
detach _wounded;
_dragger switchMove "";
_wounded setVariable ["NORRN_LoadVcl", _vcl, true];
uiSleep 1;
//["norrnRLact",_wounded] call broadcastRpcCallAll;
norrnRLact = [_wounded];
publicVariable "norrnRLact";
player removeAction NORRN_dropAction;
}else{
hint "No space left in vehicle";
};
NORRN_load_wounded_action = true;