weapons: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (classified)
Line 43: Line 43:
[[Category:Scripting Commands OFP 1.96|WEAPONS]]
[[Category:Scripting Commands OFP 1.96|WEAPONS]]
[[Category:Scripting Commands ArmA|WEAPONS]]
[[Category:Scripting Commands ArmA|WEAPONS]]
[[Category:Command_Group:_Weapons|{{uc:{{PAGENAME}}}}]]

Revision as of 05:41, 16 April 2008

Hover & click on the images for description

Description

Description:
Returns array of names of all Unit's weapons.
Groups:
Uncategorised

Syntax

Syntax:
Array = weapons Unit
Parameters:
Unit: Object
Return Value:
Array of Strings

Examples

Example 1:
_wArray = weapons player

Additional Information

See also:
See also needed

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

In version 1.02 this command returns only weapons defined for the primary turret of the vehicle. for ex. only ["D81", "PKT"] for t72, not ["D81", "PKT","DSHKM"]
Posted on 06:01, 3 March 2007 (CET)
Donnervogel
weapons never returns the weapon "Throw" which all soldier units have have to throw handgrenades. You'd have to use hasWeapon to verfy it. Also handgrenades are not listed since they are magazines. Use magazines for that.
Posted on 12:58, 11 March 2007 (CET)
Shuko
Since searching for weapons takes you to this page, this link might be useful. ArmA:_Weapons

Bottom Section