loadMagazine: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "Category:Scripting Commands ArmA2" to "Category:Scripting Commands Arma 2") |
Lou Montana (talk | contribs) m (Fix ArmA 2 link) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| 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. | | 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 | | transport [[loadMagazine]] [turretPath, weaponName, magazineName]|SYNTAX= | ||
|p1= transport: [[Object]] |PARAMETER1= | |p1= transport: [[Object]] |PARAMETER1= | ||
Line 25: | Line 24: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>[[vehicle]] [[player]] [[loadMagazine]] <nowiki>[ | |x1= <code>[[vehicle]] [[player]] [[loadMagazine]] [<nowiki/>[0], "m256", "20Rnd_120mmHE_M1A2"];</code>|EXAMPLE1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[magazinesTurret]], [[addMagazineTurret]], [[reload]], [[weaponState]], [[setWeaponReloadingTime]], [[weapons]], [[magazines]], [[ | | [[magazinesTurret]], [[addMagazineTurret]], [[reload]], [[weaponState]], [[setWeaponReloadingTime]], [[weapons]], [[magazines]], [[Arma 3: Actions#SwitchMagazine|SwitchMagazine]]|SEEALSO= | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= | ||
Line 48: | Line 46: | ||
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | ||
Revision as of 23:16, 24 February 2020
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:
- Uncategorised
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