weapons

From Bohemia Interactive Community
Jump to: navigation, search
Introduced in Operation Flashpoint: Resistance version 1.75

Click on the images for descriptions

Introduced in

Game:
Operation Flashpoint: Resistance
Version:
1.75

Description

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

Syntax

Syntax:
Array = weapons vehicleName
Parameters:
vehicleName: Object
Return Value:
Array of weapon names.

Examples

Example 1:
_wArray = weapons player

Additional Information

Multiplayer:
-
See also:
magazines, weaponsTurret, assignedVehicleRole - Link to game weapons category

Notes

Notes


Only post proven facts here. Use the talk page or the forums for discussions.

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.

Posted on 25 November 2011
Dr_Eyeball
This command does not include non-turret weapons, such as smoke, flare or chaff launchers which are usually declared in the root of the vehicle's class, rather than in the Turrets hierarchy. (Unsure whether it excludes it because it is not in the turret or because these are not considered true weapons via some property.)

Bottom Section

Personal tools
Google Ads