mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
e5f02f8d63
sys_cargo to merge
24 lines
530 B
Plaintext
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
|