setPylonLoadout: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (format)
m (template:command argument fix)
Line 4: Line 4:
| arma3 |= Game name
| arma3 |= Game name


|1.70|= Game Version
|1.70|Game Version=
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 12:14, 5 August 2019

Hover & click on the images for description

Description

Description:
Adds loadout to vehicle pylon. TransportPylonsComponent in config is required
Groups:
Uncategorised

Syntax

Syntax:
vehicle setPylonLoadout [pylon, magazine, forced, turret];
Parameters:
vehicle: Object
[pylon, magazine, forced, turret] : Array
pylon: Number or String - pylon index (index starts from 1) or pylon name (see getCompatiblePylonMagazines Example 4)
magazine: String - magazine name
forced (Optional): Boolean - true to force incompatible magazine. Default: false
turret (Optional): Array - turret path. Default: []
Return Value:
Bool - true on success

Examples

Example 1:
vehicle player setPylonLoadout ["pylon1", ""];

Additional Information

See also:
Arma 3 Vehicle LoadoutsgetCompatiblePylonMagazinesgetPylonMagazinessetAmmoOnPylonammoOnPylonanimatePylonanimateBaysetPylonsPriority

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