ammoOnPylon: Difference between revisions
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 | |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}}}}]] | ||
Revision as of 23:11, 17 May 2017
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