ammoOnPylon: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <!-- CONTINUE Notes --> <!-- DISCONTINUE Notes --> " to "")
mNo edit summary
 
(28 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command
{{RV|type=command


| arma3
|game1= arma3
 
|version1= 1.70
|1.70


|gr1= Vehicle Loadouts
|gr1= Vehicle Loadouts


|Returns ammo count on given pylon.
|descr= Returns ammo count on given pylon (or [[false]] on failure).
Returns false ([[Boolean]]) on failure.


| vehicle '''ammoOnPylon''' pylon
|s1= vehicle [[ammoOnPylon]] pylon


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


|p2= pylon: [[String]] or [[Number]] - The name or the index of the pylon
|p2= pylon: [[String]] or [[Number]] - pylon's name or index


| [[Number]] or [[Boolean]]
|r1= [[Number]] or [[Boolean]] - [[false]] on failure


|x1= <sqf>private _ammoCount = (vehicle player) ammoOnPylon "pylon1";</sqf>


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


|seealso= [[Arma 3: Vehicle Loadouts]] [[setAmmoOnPylon]] [[getCompatiblePylonMagazines]] [[getPylonMagazines]] [[animatePylon]] [[animateBay]] [[setPylonsPriority]] [[setPylonLoadout]]
}}


 
{{Note
| [[Arma 3 Vehicle Loadouts]],[[setAmmoOnPylon]],[[getCompatiblePylonMagazines]],[[getPylonMagazines]],[[animatePylon]],[[animateBay]],[[setPylonsPriority]],[[setPylonLoadout]]
|user= Commy2
 
|timestamp= 20170818142100
|text= The pylon indices start at 1 and not at 0.
}}
}}
<dl class="command_description">
</dl>
{{GameCategory|arma3|New Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on August 18, 2017 - 14:21 (UTC)</dd>
<dt class="note">[[User:Commy2|Commy2]]</dt>
<dd class="note">
The pylon indices start at 1 and not at 0.
</dd>
</dl>
<!-- DISCONTINUE Notes -->

Latest revision as of 07:27, 7 November 2023

Hover & click on the images for description

Description

Description:
Returns ammo count on given pylon (or false on failure).
Groups:
Vehicle Loadouts

Syntax

Syntax:
vehicle ammoOnPylon pylon
Parameters:
vehicle: Object
pylon: String or Number - pylon's name or index
Return Value:
Number or Boolean - false on failure

Examples

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

Additional Information

See also:
Arma 3: Vehicle Loadouts setAmmoOnPylon getCompatiblePylonMagazines getPylonMagazines animatePylon animateBay setPylonsPriority setPylonLoadout

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
Commy2 - c
Posted on Aug 18, 2017 - 14:21 (UTC)
The pylon indices start at 1 and not at 0.