weaponState: Difference between revisions
Jump to navigation
Jump to search
(Added page for scripting command 'weaponState') |
m (Text replace - "{{uc:{{PAGENAME}}}}" to "{{uc:{{PAGENAME}}}} {{uc:{{PAGENAME}}}}") |
||
Line 49: | Line 49: | ||
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | |||
[[Category:ArmA 2 OA: New Scripting Commands List|{{uc:{{PAGENAME}}}}]] | [[Category:ArmA 2 OA: New Scripting Commands List|{{uc:{{PAGENAME}}}}]] |
Revision as of 11:44, 2 November 2011
Description
- Description:
- Returns the current weapon state as an array of strings in the following format [WeaponName, MuzzleName, ModeName, MagazineName, AmmoCount] (AmmoCount is Number).
- Groups:
- Uncategorised
Syntax
- Syntax:
- weaponState unitName
- Parameters:
- unitName: Object
- Return Value:
- Array: ["m16a4","m16a4","Single","30Rnd_556x45_Stanag",29]
Alternative Syntax
- Syntax:
- weaponState [vehicle, turretPath]
- Parameters:
- vehicle: Object
- turretPath: Array
- Return Value:
- Array: ["M256","M256","M256","20Rnd_120mmSABOT_M1A2",20]
Examples
- Example 1:
_weaponStatePlayer = weaponState player;
- Example 2:
_weaponStateVehiclePlayer = weaponState [vehicle player,[0]];
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
Bottom Section
Categories:
- Scripting Commands
- Introduced with Arma 2: Operation Arrowhead version 1.60
- Arma 2: Operation Arrowhead: New Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands ArmA2
- Scripting Commands Take On Helicopters
- ArmA 2 OA: New Scripting Commands List