someAmmo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
Line 33: Line 33:
<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|SOMEAMMO]]
[[Category:Scripting Commands|SOMEAMMO]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|SOMEAMMO]]
[[Category:Scripting Commands OFP 1.96|SOMEAMMO]]
[[Category:Scripting Commands OFP 1.46|SOMEAMMO]]
[[Category:Scripting Commands OFP 1.46|SOMEAMMO]]

Revision as of 11:22, 25 September 2014

Hover & click on the images for description

Description

Description:
Check if unit has some ammo.
Groups:
Uncategorised

Syntax

Syntax:
Boolean = someAmmo unitName
Parameters:
unitName: Object
Return Value:
Boolean

Examples

Example 1:
? not (someAmmo _loon1) : hint "Loon1 is out of ammo!"

Additional Information

See also:
ammomagazines

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