setPylonLoadout: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(casing)
 
m (format)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Will add missile to vehicle pylon, TransportPylonsComponent in config is required |DESCRIPTION=
| Adds loadout to vehicle pylon. <tt>TransportPylonsComponent</tt> in config is required |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| vehicle '''setPylonLoadout''' [pylon name/index, magazine name, forced, turret]; |SYNTAX=
| vehicle '''setPylonLoadout''' [pylon, magazine, forced, turret]; |SYNTAX=


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


|p2= [pylon name/index, magazine name, forced = false, turret = [] (empty for pilot)] : [[Array]] |PARAMETER2=
|p2= [pylon, magazine, forced, turret] : [[Array]] |PARAMETER2=
|p3= pylon: [[Number]] or [[String]] - pylon index (index starts from 1) or pylon name (see [[getCompatiblePylonMagazines]] Example 4) |PARAMETER3=
|p4= magazine: [[String]] - magazine name |PARAMETER4=
|p5= forced (Optional): [[Boolean]] - [[true]] to force incompatible magazine. Default: [[false]] |PARAMETER5=
|p6= turret (Optional): [[Array]] - turret path. Default: []|PARAMETER6=


| [[Bool]] |RETURNVALUE=
| [[Bool]] - [[true]] on success |RETURNVALUE=


____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code>([[vehicle]] [[player]]) [[setPylonLoadout]] ["pylon1", ""]; </code>|EXAMPLE1=
|x1= <code>[[vehicle]] [[player]] [[setPylonLoadout]] ["pylon1", ""]; </code>|EXAMPLE1=
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 20:54, 15 April 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