setPylonLoadout: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \| *(\[\[[a-zA-Z0-9]+\]\][^ ]+) *\|x1=" to " |r1= $1 |x1=") |
Lou Montana (talk | contribs) m (Text replacement - "<dl class="command_description"> <dt></dt>" to "<dl class="command_description"> <dt></dt>") |
||
Line 43: | Line 43: | ||
<dl class="command_description"> | <dl class="command_description"> | ||
<dt></dt> | <dt></dt> | ||
<dd class="notedate">Posted on April 30, 2020 - 13:01 (UTC)</dd> | <dd class="notedate">Posted on April 30, 2020 - 13:01 (UTC)</dd> |
Revision as of 14:35, 12 June 2021
Description
- Description:
- Description needed
- Groups:
- Vehicle Loadouts
Syntax
- Syntax:
- Syntax needed
- 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:
- Boolean - true on success
Examples
- Example 1:
vehicle player setPylonLoadout ["pylon1", ""];
- Example 2:
- Make all of your pylon weapons Twin Cannon 30 mm:
for "_i" from 1 to 100 do { vehicle player setPylonLoadout [_i, "PylonWeapon_300Rnd_20mm_shells", true]; };
- Example 3:
- Showcase all possible magazines:
[] spawn { { for "_i" from 1 to 100 do { vehicle player setPylonLoadout [_i, configName _x, true]; }; hint configName _x; sleep 1.5; } forEach ("getText (_x >> 'pylonWeapon') != ''" configClasses (configFile >> "CfgMagazines")); } ;
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
- Posted on April 30, 2020 - 13:01 (UTC)
- POLPOX
- turret must be [] if you wanted to equip the magazine to the pilot. [-1] will return false and fails unlike other turret related commands.