setAmmoOnPylon

From Bohemia Interactive Community
Jump to navigation Jump to search
Introduced with Arma 3 version 1.70
  

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
1.70

Description

Description:
Set count of ammo in magazine on pylon (supports pylon name since Arma 3 v1.93.145594)

Syntax

Syntax:
vehicle setAmmoOnPylon [pylon, ammocount]
Parameters:
vehicle: Object
[pylon, ammocount]: Array
pylon: Number or String - pylon index (index starts from 1) or pylon name (see getCompatiblePylonMagazines Example 4)
ammocount: Number - ammo count
Return Value:
Nothing

Examples

Example 1:
vehicle player setAmmoOnPylon [1, 12];
Example 2:
vehicle player setAmmoOnPylon ["pylon1", 12];

Additional Information

Multiplayer:
-
See also:
Arma 3 Vehicle LoadoutsgetCompatiblePylonMagazinesgetPylonMagazinesanimatePylonanimateBaysetPylonsPrioritysetPylonLoadout

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To


Notes

Bottom Section

Posted on August 18, 2017 - 14:20 (UTC)
Commy2
The pylon indices start at 1 and not at 0.