CBA_fnc_addWeaponCargo

Description

Add weapon(s) to vehicle cargo.

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.

Parameters

_unitthe vehicle [Object]
_itemname of weapon [String]
_countnumber of weapons to add [Number] (Default: 1)

Returns

true on success, false otherwise

Examples

// Add one laser designator to the cargo of SomeTruck
_result = [SomeTruck, "LaserDesignator"] call CBA_fnc_addWeaponCargo

// Add two AK 107 rifles to MyUAZ
_result = [MyUAZ, "AK_107_KOBRA", 2] call CBA_fnc_addWeaponCargo

Author

Sickboy

Close