Add weapon(s) to vehicle cargo. MP synchronized.
Function which verifies existence of _item and _unit, returns false in case of trouble, or when able to add _item to _unit true in case of success.
_unit | the vehicle [Object] |
_item | name of weapon [String] |
_count | number of weapons to add [Number] (Default: 1) |
true on success, false otherwise
// Add one laser designator to the cargo of SomeTruck _result = [SomeTruck, "LaserDesignator"] call CBA_fnc_addWeaponCargoGlobal // Add two AK 107 rifles to MyUAZ _result = [MyUAZ, "AK_107_KOBRA", 2] call CBA_fnc_addWeaponCargoGlobal
Sickboy