weapons: Difference between revisions
Jump to navigation
Jump to search
m (VBS2 scripting category removal) |
(mass edit: removing obsolete </dt> and </dd> tags) |
||
Line 30: | Line 30: | ||
for ex. only ["D81", "PKT"] for t72, not ["D81", "PKT","DSHKM"] | for ex. only ["D81", "PKT"] for t72, not ["D81", "PKT","DSHKM"] | ||
<dd class="notedate">Posted on 06:01, 3 March 2007 (CET) | <dd class="notedate">Posted on 06:01, 3 March 2007 (CET) | ||
<dt class="note>'''[[User:Donnervogel|Donnervogel]]''' | <dt class="note>'''[[User:Donnervogel|Donnervogel]]'''<dd class="note">''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. | ||
<dd class="notedate">Posted on 12:58, 11 March 2007 (CET) | <dd class="notedate">Posted on 12:58, 11 March 2007 (CET) | ||
<dt class="note>'''[[User:Shuko|Shuko]]''' | <dt class="note>'''[[User:Shuko|Shuko]]'''<dd class="note">Since searching for weapons takes you to this page, this link might be useful. [[ArmA:_Weapons]] | ||
<dd class="notedate">Posted on 11 March 2011 | <dd class="notedate">Posted on 11 March 2011 | ||
<dt class="note>'''[[User:kju|kju]]''' | <dt class="note>'''[[User:kju|kju]]''' | ||
<dd class="note"> | <dd class="note"> | ||
Use [[weaponsTurret]] to determine the weapons of a non gunner/turret position. | Use [[weaponsTurret]] to determine the weapons of a non gunner/turret position. | ||
<!-- Note Section END --> | <!-- Note Section END --> |
Revision as of 02:50, 18 October 2011
Description
- Description:
- Returns array of names of all Unit's weapons.
- Groups:
- Uncategorised
Syntax
- Syntax:
- Array = weapons vehicleName
- Parameters:
- vehicleName: Object
- Return Value:
- Array of weapon names.
Examples
- Example 1:
_wArray = weapons player
Additional Information
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 Armed Assault 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
- Posted on 11 March 2011
- kju
- Use weaponsTurret to determine the weapons of a non gunner/turret position.
Bottom Section
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint: Resistance version 1.75
- Operation Flashpoint: Resistance: New Scripting Commands
- Operation Flashpoint: Resistance: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands OFP 1.96
- Scripting Commands ArmA
- Scripting Commands ArmA2
- Command Group: Weapons