loadMagazine: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma2oa | | arma2oa | ||
|1.60 | |1.60 | ||
|gr1= Weapons | |gr1= Weapons | ||
|gr2= Turrets | |gr2= Turrets | ||
| Initiates the loading action on given weapon of the turret of a transport. So the new magazine is not available instantly, yet according to the reloadTime.<br> | | Initiates the loading action on given weapon of the turret of a transport. So the new magazine is not available instantly, yet according to the reloadTime.<br> | ||
The turret has to be manned. One can also change the magazine if its respective weapon is not selected. | The turret has to be manned. One can also change the magazine if its respective weapon is not selected. | ||
| transport [[loadMagazine]] [turretPath, weaponName, magazineName] | | transport [[loadMagazine]] [turretPath, weaponName, magazineName] | ||
|p1= transport: [[Object]] | |p1= transport: [[Object]] | ||
|p2= turretPath: [[Array]] | |p2= turretPath: [[Array]] | ||
|p3= weaponName: [[String]] | |p3= weaponName: [[String]] | ||
|p4= magazineName: [[String]] | |p4= magazineName: [[String]] | ||
| [[Nothing]] | | [[Nothing]] | ||
|x1= <code>[[vehicle]] [[player]] [[loadMagazine]] [<nowiki/>[0], "m256", "20Rnd_120mmHE_M1A2"];</code> | |x1= <code>[[vehicle]] [[player]] [[loadMagazine]] [<nowiki/>[0], "m256", "20Rnd_120mmHE_M1A2"];</code> | ||
| [[magazinesTurret]], [[addMagazineTurret]], [[reload]], [[weaponState]], [[setWeaponReloadingTime]], [[weapons]], [[magazines]], [[Arma 3: Actions#SwitchMagazine|SwitchMagazine]] | | [[magazinesTurret]], [[addMagazineTurret]], [[reload]], [[weaponState]], [[setWeaponReloadingTime]], [[weapons]], [[magazines]], [[Arma 3: Actions#SwitchMagazine|SwitchMagazine]] | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= |
Revision as of 00:59, 18 January 2021
Description
- Description:
- Initiates the loading action on given weapon of the turret of a transport. So the new magazine is not available instantly, yet according to the reloadTime.
The turret has to be manned. One can also change the magazine if its respective weapon is not selected. - Groups:
- WeaponsTurrets
Syntax
- Syntax:
- transport loadMagazine [turretPath, weaponName, magazineName]
- Parameters:
- transport: Object
- turretPath: Array
- weaponName: String
- magazineName: String
- Return Value:
- Nothing
Examples
- Example 1:
vehicle player loadMagazine [[0], "m256", "20Rnd_120mmHE_M1A2"];
Additional Information
- See also:
- magazinesTurretaddMagazineTurretreloadweaponStatesetWeaponReloadingTimeweaponsmagazinesSwitchMagazine
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