CBA_fnc_addWeaponWithoutItems

Description

Adds weapon to unit without taking a magazine.  Attachments will be removed by default, but can be kept by setting a parameter.

Does not work on vehicles.  Attempts to keep magazine ids for unrelated magazines.

Parameters

_unitUnit to add the weapon to <OBEJCT>
_weaponWeapon to add STRING
_removeLinkedItemsIf linked items should be removed or not <BOOLEAN> (Default: true)

Returns

Nothing.

Examples

[player, "arifle_mx_F"] call CBA_fnc_addWeaponWithoutItems;
[player, "arifle_AK12_lush_arco_snds_pointer_bipod_F", false] call CBA_fnc_addWeaponWithoutItems;

Author

commy2, johnb43

string used by format
Close