mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-23 16:40:50 +03:00
0.1
This commit is contained in:
33
dayz_code/medical/load/load_act.sqf
Normal file
33
dayz_code/medical/load/load_act.sqf
Normal file
@@ -0,0 +1,33 @@
|
||||
// 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];
|
||||
sleep 1;
|
||||
[_wounded] execVM "\z\addons\dayz_code\medical\load\load_wounded.sqf";
|
||||
norrnRLact = _wounded;
|
||||
publicVariable "norrnRLact";
|
||||
player removeAction NORRN_dropAction;
|
||||
}else{
|
||||
|
||||
hint "No space left in vehicle";
|
||||
};
|
||||
NORRN_load_wounded_action = true;
|
||||
|
||||
if (true) exitWith {};
|
||||
Reference in New Issue
Block a user