loadMagazine: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(changed vehicle for transport to avoid confusion)
m (template:command argument fix)
Line 25: Line 25:
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code>[[vehicle]] [[player]] [[loadMagazine]] <nowiki>[[</nowiki>0],"m256","20Rnd_120mmHE_M1A2"];</code>|= EXAMPLE1
|x1= <code>[[vehicle]] [[player]] [[loadMagazine]] <nowiki>[[</nowiki>0],"m256","20Rnd_120mmHE_M1A2"];</code>|EXAMPLE1=  


____________________________________________________________________________________________
____________________________________________________________________________________________


| [[magazinesTurret]], [[addMagazineTurret]], [[reload]], [[weaponState]], [[setWeaponReloadingTime]], [[weapons]], [[magazines]], [[ArmA_2:_Actions#SwitchMagazine|SwitchMagazine]] |= SEEALSO
| [[magazinesTurret]], [[addMagazineTurret]], [[reload]], [[weaponState]], [[setWeaponReloadingTime]], [[weapons]], [[magazines]], [[ArmA_2:_Actions#SwitchMagazine|SwitchMagazine]] |SEEALSO=  


|  |= MPBEHAVIOUR
|  |MPBEHAVIOUR=  
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 11:35, 7 April 2019

Hover & click on the images for description

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

Notes

Bottom Section