loadMagazine

From Bohemia Interactive Community
Revision as of 11:28, 13 May 2022 by Lou Montana (talk | contribs) (Text replacement - "<code>([^<]*)<nowiki\/?>([^<]*)<\/code>" to "<code>$1$2</code>")
Jump to navigation Jump to search

{{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 }}