setPylonLoadout

From Bohemia Interactive Community
Revision as of 20:54, 15 April 2019 by Killzone Kid (talk | contribs) (format)
Jump to navigation Jump to search
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