ammo: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{Command|= Comments | |||
____________________________________________________________________________________________ | |||
| ofp |= Game name | |||
|1.00|= Game version | |||
|arg= global |= Arguments in MP | |||
____________________________________________________________________________________________ | |||
| Check how many rounds are left in the currently loaded magazine of the given weapon. |= Description | |||
____________________________________________________________________________________________ | |||
| unit '''ammo''' weaponName |= Syntax | |||
|p1= unit: [[Object]] |= Parameter 1 | |||
|p2= weaponName: [[String]] - muzzle name. See the topic [[Weapon, Muzzle and Magazine Names]] for reference about possible values. |= Parameter 2 | |||
| [[Integer]] |= Return value | |||
____________________________________________________________________________________________ | |||
|x1= <pre>player ammo "M16"</pre> | |||
returns 30 in case of a full magazine |= Example 1 | |||
____________________________________________________________________________________________ | |||
[[ | | [[someAmmo]] |= See also | ||
}} | |||
<h3 style="display:none">Notes</h3> | |||
<dl class="command_description"> | |||
<!-- Note Section BEGIN --> | |||
<!-- Note Section END --> | |||
</dl> | |||
<h3 style="display:none">Bottom Section</h3> | |||
[[Category:Scripting Commands|AMMO]] | |||
[[Category:Scripting Commands OFP 1.96|AMMO]] | |||
[[Category:Scripting Commands OFP 1.46|AMMO]] | |||
[[Category:Scripting Commands ArmA|AMMO]] |
Revision as of 21:59, 1 August 2006
Description
- Description:
- Check how many rounds are left in the currently loaded magazine of the given weapon.
- Groups:
- Uncategorised
Syntax
- Syntax:
- unit ammo weaponName
- Parameters:
- unit: Object
- weaponName: String - muzzle name. See the topic Weapon, Muzzle and Magazine Names for reference about possible values.
- Return Value:
- Integer
Examples
- Example 1:
player ammo "M16"
returns 30 in case of a full magazine
Additional Information
- See also:
- someAmmo
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