someAmmo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (template:command argument fix)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Check if unit has some ammo. |= Description
| Check if unit has some ammo. |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[Boolean]] <nowiki>=</nowiki> '''someAmmo''' unitName |= Syntax
| [[Boolean]] <nowiki>=</nowiki> '''someAmmo''' unitName |SYNTAX=


|p1= unitName: [[Object]] |= Parameter 1
|p1= unitName: [[Object]] |PARAMETER1=


| [[Boolean]] |= Return value
| [[Boolean]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>? [[not]] (someAmmo _loon1) : [[hint]] "Loon1 is out of ammo!"</code> |= Example 1
|x1= <code>? [[not]] (someAmmo _loon1) : [[hint]] "Loon1 is out of ammo!"</code> |EXAMPLE1=
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[ammo]], [[magazines]] |= See also
| [[ammo]], [[magazines]] |SEEALSO=


}}
}}

Revision as of 15:49, 7 April 2019

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