someAmmo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 1: Line 1:
[[Category:Scripting Commands|S]]
[[Category:Scripting Commands|SOMEAMMO]]
[[Category:Scripting Commands OFP 1.97|S]]
[[Category:Scripting Commands OFP 1.97|SOMEAMMO]]
[[Category:Scripting Commands OFP 1.46|S]]
[[Category:Scripting Commands OFP 1.46|SOMEAMMO]]
[[Category:Scripting Commands ArmA|S]]
[[Category:Scripting Commands ArmA|SOMEAMMO]]





Revision as of 17:00, 4 May 2006


someAmmo unit


Operand types:

unit: Object

Type of returned value:

Boolean

Description:

Check if unit has some ammo.


Example:

? not (someAmmo loon1) : hint "Loon1 is out of ammo!"