loadMagazine: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]2(\|.*)\]\]" to "{{GameCategory|arma2|Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma2oa |Game name= | | arma2oa |Game name= | ||
Line 9: | Line 8: | ||
|gr2= Turrets |GROUP2= | |gr2= Turrets |GROUP2= | ||
| 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. |DESCRIPTION= | The turret has to be manned. One can also change the magazine if its respective weapon is not selected. |DESCRIPTION= | ||
| transport [[loadMagazine]] [turretPath, weaponName, magazineName]|SYNTAX= | | transport [[loadMagazine]] [turretPath, weaponName, magazineName]|SYNTAX= | ||
Line 26: | Line 23: | ||
| [[Nothing]] |RETURNVALUE= | | [[Nothing]] |RETURNVALUE= | ||
|x1= <code>[[vehicle]] [[player]] [[loadMagazine]] [<nowiki/>[0], "m256", "20Rnd_120mmHE_M1A2"];</code>|EXAMPLE1= | |x1= <code>[[vehicle]] [[player]] [[loadMagazine]] [<nowiki/>[0], "m256", "20Rnd_120mmHE_M1A2"];</code>|EXAMPLE1= | ||
| [[magazinesTurret]], [[addMagazineTurret]], [[reload]], [[weaponState]], [[setWeaponReloadingTime]], [[weapons]], [[magazines]], [[Arma 3: Actions#SwitchMagazine|SwitchMagazine]]|SEEALSO= | | [[magazinesTurret]], [[addMagazineTurret]], [[reload]], [[weaponState]], [[setWeaponReloadingTime]], [[weapons]], [[magazines]], [[Arma 3: Actions#SwitchMagazine|SwitchMagazine]]|SEEALSO= | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= | ||
}} | }} |
Revision as of 01:56, 17 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