loadMagazine: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<code>([^ ]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "<code>$1$2$3</code>")
m (Text replacement - "<code>([^<]*)<nowiki\/?>([^<]*)<\/code>" to "<code>$1$2</code>")
Line 29: Line 29:
|r1= [[Nothing]]
|r1= [[Nothing]]


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


|seealso= ‎[[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]]
}}
}}

Revision as of 11:28, 13 May 2022

{{RV|type=command

|game1= arma2oa |version1= 1.60

|game2= tkoh |version2= 1.00

|game3= arma3 |version3= 0.50

|gr1= Weapons

|gr2= Turrets

|descr= 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.

|s1= transport loadMagazine [turretPath, weaponName, magazineName]

|p1= transport: Object

|p2= turretPath: Array

|p3= weaponName: String

|p4= magazineName: String

|r1= Nothing

|x1= vehicle player loadMagazine [[0], "m256", "20Rnd_120mmHE_M1A2"];

|seealso= ‎magazinesTurret, addMagazineTurret, reload, weaponState, setWeaponReloadingTime, weapons, magazines, SwitchMagazine }}