setPylonLoadout: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (casing) |
Killzone Kid (talk | contribs) m (format) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | Adds loadout to vehicle pylon. <tt>TransportPylonsComponent</tt> in config is required |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| vehicle '''setPylonLoadout''' [pylon | | vehicle '''setPylonLoadout''' [pylon, magazine, forced, turret]; |SYNTAX= | ||
|p1= vehicle: [[Object]] |PARAMETER1= | |p1= vehicle: [[Object]] |PARAMETER1= | ||
|p2= [pylon | |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> | |x1= <code>[[vehicle]] [[player]] [[setPylonLoadout]] ["pylon1", ""]; </code>|EXAMPLE1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 19:54, 15 April 2019
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