someAmmo: Difference between revisions

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

Revision as of 21:39, 1 June 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!"