Warning: file_put_contents(/ff_86322220437cb19a07a9459152e16ee7d28508d7efe6d7f0.php): failed to open stream: Permission denied in /home/ofpecsav/public_html/forum/Sources/Subs-ForumFirewall.php on line 1619
secondaryWeaponItems - OFPEC Scripting Command Reference | OFPEC The Editing Center

secondaryWeaponItems unitName

Operand types

unitName: Object

Type of returned value

Description

Returns array with all items assigned to the secondary weapon.
This command is used for infantry weapons only.

NOTE:

  • Returns empty array [] if unit has no secondary weapon.

  • Returns array of empty strings ["","",""] if unit has a secondary weapon but no attachments for it.

Used In

Arma3

Example

hint str(secondaryWeaponItems player);

Advertisement