ammoOnPylon: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 6: | Line 6: | ||
|gr1= Vehicle Loadouts | |gr1= Vehicle Loadouts | ||
|descr=Returns ammo count on given pylon | |descr= Returns ammo count on given pylon (or [[false]] on failure). | ||
|s1= vehicle [[ammoOnPylon]] pylon | |s1= vehicle [[ammoOnPylon]] pylon | ||
Line 13: | Line 12: | ||
|p1= vehicle: [[Object]] | |p1= vehicle: [[Object]] | ||
|p2= pylon: [[String]] or [[Number]] - | |p2= pylon: [[String]] or [[Number]] - pylon's name or index | ||
|r1= [[Number]] or [[Boolean]] | |r1= [[Number]] on success or [[Boolean]] ([[false]]) on failure | ||
|x1= < | |x1= <sqf>private _ammoCount = (vehicle player) ammoOnPylon "pylon1";</sqf> | ||
|x2= < | |||
|x2= <sqf>hint str (vehicle player ammoOnPylon "pylonCenter");</sqf> | |||
|seealso= [[Arma 3: Vehicle Loadouts]] [[setAmmoOnPylon]] [[getCompatiblePylonMagazines]] [[getPylonMagazines]] [[animatePylon]] [[animateBay]] [[setPylonsPriority]] [[setPylonLoadout]] | |seealso= [[Arma 3: Vehicle Loadouts]] [[setAmmoOnPylon]] [[getCompatiblePylonMagazines]] [[getPylonMagazines]] [[animatePylon]] [[animateBay]] [[setPylonsPriority]] [[setPylonLoadout]] | ||
}} | }} | ||
{{Note | |||
|user= Commy2 | |||
|timestamp= 20170818142100 | |||
|text= The pylon indices start at 1 and not at 0. | |||
}} | |||
The pylon indices start at 1 and not at 0. | |||
Revision as of 21:14, 7 May 2022
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 on success or Boolean (false) on failure
Examples
- Example 1:
- Example 2:
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
- Posted on Aug 18, 2017 - 14:21 (UTC)
- The pylon indices start at 1 and not at 0.