ammoOnPylon: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (added SimZor example)
m (fixed syntax notation)
Line 12: Line 12:
____________________________________________________________________________________________
____________________________________________________________________________________________


| vehicle '''ammoOnPylon''' (pylon name/index)|= Syntax
| vehicle '''ammoOnPylon''' pylon|= Syntax


|p1= vehicle: [[Object]] |= Parameter 1
|p1= vehicle: [[Object]] |= Parameter 1


|p2= pylon name/index : [[String]] or [[Number]] |= Parameter 2
|p2= pylon: [[String]] or [[Number]] - The name or the index of the pylon |= Parameter 2


| [[Number]] or [[Bool]] |= Return Value
| [[Number]] or [[Bool]] |= Return Value

Revision as of 10:07, 7 August 2017

Hover & click on the images for description

Description

Description:
Returns ammo count on given pylon. Returns false (Bool) on failure.
Groups:
Uncategorised

Syntax

Syntax:
vehicle ammoOnPylon pylon
Parameters:
vehicle: Object
pylon: String or Number - The name or the index of the pylon
Return Value:
Number or Bool

Examples

Example 1:
_ammoCount = (vehicle player) ammoOnPylon "pylon1";
Example 2:
hint str ((vehicle player) ammoOnPylon "pylonCenter");

Additional Information

See also:
setAmmoOnPylon getPylonMagazines

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