ammoOnPylon: Difference between revisions
Jump to navigation
Jump to search
m (Bot: Replacing category Scripting Commands Arma 3 with Arma 3: Scripting Commands) |
m (Bot: Reverted to revision 107747 by R3vo on 2018-05-29T13:28:16Z) |
||
Line 43: | Line 43: | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> | ||
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]] | |||
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | |||
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | |||
[[Category:Scripting Commands Vehicle Loadouts|{{uc:{{PAGENAME}}}}]] | |||
<!-- CONTINUE Notes --> | <!-- CONTINUE Notes --> | ||
<dl class="command_description"> | <dl class="command_description"> | ||
Line 52: | Line 57: | ||
</dl> | </dl> | ||
<!-- DISCONTINUE Notes --> | <!-- DISCONTINUE Notes --> | ||
Revision as of 18:15, 3 December 2018
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
- Posted on August 18, 2017 - 14:21 (UTC)
- Commy2
- The pylon indices start at 1 and not at 0.