ACE3/TO_MERGE/ace/sys_cargo/fnc_carry2.sqf

24 lines
530 B
Plaintext
Raw Normal View History

2015-01-29 23:18:45 +00:00
/* ace_sys_cargo | (c) 2010,2011 by rocko */
//#define DEBUG_MODE_FULL
#include "script_component.hpp"
private "_var";
PARAMS_3(_component,_unit,_type);
switch (_type) do {
case "CARRIER": {
if (_component getVariable [QGVAR(busy),false]) then {
[localize "STR_ACE_CARGO_ERR_OCC",[1,0,0,1],true,0] spawn ace_fnc_visual;
} else {
[_component,_unit,0,["front", "grab"]] execVM QPATHTO_C(ua_carry2.sqf);
};
};
case "HELPER": {
[_component,_unit,0,["back", "grab"]] execVM QPATHTO_C(ua_carry2.sqf);
};
};
false