ACE3/TO_MERGE/ace/sys_cargo/fnc_carry2.sqf
Giallustio e5f02f8d63 sys_cargo
sys_cargo to merge
2015-01-30 00:19:13 +01:00

24 lines
530 B
Plaintext

/* 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