someAmmo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
[[Category:Scripting Commands|SOMEAMMO]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|SOMEAMMO]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|SOMEAMMO]]
[[Category:Scripting Commands ArmA|SOMEAMMO]]


| ofp |= Game name


<h2 style="color:#000066">'''someAmmo ''unit'''''</h2>
|1.00|= Game version
____________________________________________________________________________________________


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


'''Operand types:'''
| '''someAmmo''' unit |= Syntax


'''unit:''' [[Object]]
|p1= unit: [[Object]] |= Parameter 1


'''Type of returned value:'''
| [[Boolean]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>? [[not]] (someAmmo loon1) : [[hint]] "Loon1 is out of ammo!"</pre> |= Example 1
____________________________________________________________________________________________


[[Boolean]]
|  |= See also


'''Description:'''
}}


Check if unit has some ammo.
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
</dl>


'''Example:'''
<h3 style="display:none">Bottom Section</h3>
 
[[Category:Scripting Commands|SOMEAMMO]]
? [[not]] ('''someAmmo''' loon1) : [[hint]] "Loon1 is out of ammo!"
[[Category:Scripting Commands OFP 1.96|SOMEAMMO]]
[[Category:Scripting Commands OFP 1.46|SOMEAMMO]]
[[Category:Scripting Commands ArmA|SOMEAMMO]]

Revision as of 00:51, 2 August 2006

Hover & click on the images for description

Description

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

Syntax

Syntax:
someAmmo unit
Parameters:
unit: Object
Return Value:
Boolean

Examples

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

Additional Information

See also:
See also needed

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