ammoOnPylon: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (added SimZor example)
Line 22: Line 22:
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code>[[hint]] [[str]] (([[vehicle]] [[player]]) '''ammoOnPylon''' "pylonCenter");</code>|= Example 1
|x1= <code>_ammoCount = ([[vehicle]] [[player]]) [[ammoOnPylon]] "pylon1";</code>|= Example 1
|x2= <code>[[hint]] [[str]] (([[vehicle]] [[player]]) '''ammoOnPylon''' "pylonCenter");</code>|= Example 2
 
 
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 32: Line 35:
<h3 style="display:none">Notes</h3>
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<dl class="command_description">
<!-- CONTINUE Notes -->
<!-- DISCONTINUE Notes -->
</dl>
</dl>


Line 38: Line 46:
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on May 17, 2017 - 08:36 (UTC)</dd>
<dt class="note">[[User:SimZor|SimZor]]</dt>
<dd class="note">
(vehicle player) ammoOnPylon "pylon1";
</dd>
</dl>
<!-- DISCONTINUE Notes -->

Revision as of 23:11, 17 May 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 name/index)
Parameters:
vehicle: Object
pylon name/index : String or Number
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