loadMagazine: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= Game name" to "|Game name=")
m (Text replacement - "‎" to "")
 
(29 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma2oa |Game name=
|game1= arma2oa
|version1= 1.60


|1.60|Game version=
|game2= tkoh
____________________________________________________________________________________________
|version2= 1.00


| 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.
|game3= arma3
|version3= 0.50


The turret has to be manned. One can also change the magazine if its respective weapon is not selected. |DESCRIPTION=
|gr1= Weapons
____________________________________________________________________________________________


| transport '''loadMagazine''' [turretPath, weaponName, magazineName]|SYNTAX=
|gr2= Turrets


|p1= transport: [[Object]] |PARAMETER1=
|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.<br>
The turret has to be manned. One can also change the magazine if its respective weapon is not selected.


|p2= turretPath: [[Array]] |PARAMETER2=
|s1= transport [[loadMagazine]] [turretPath, weaponName, magazineName]


|p3= weaponName: [[String]] |PARAMETER3=
|p1= transport: [[Object]]


|p4= magazineName: [[String]] |PARAMETER4=
|p2= turretPath: [[Array]] format [[Turret Path]]


| [[Nothing]] |RETURNVALUE=
|p3= weaponName: [[String]]
____________________________________________________________________________________________


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


____________________________________________________________________________________________
|r1= [[Nothing]]


| [[magazinesTurret]], [[addMagazineTurret]], [[reload]], [[weaponState]], [[setWeaponReloadingTime]], [[weapons]], [[magazines]], [[ArmA_2:_Actions#SwitchMagazine|SwitchMagazine]] |SEEALSO=
|x1= <sqf>vehicle player loadMagazine [[0], "m256", "20Rnd_120mmHE_M1A2"];</sqf>
 
|  |MPBEHAVIOUR=
____________________________________________________________________________________________


|seealso= [[magazinesTurret]] [[addMagazineTurret]] [[reload]] [[weaponState]] [[setWeaponReloadingTime]] [[weapons]] [[magazines]] [[Arma 3: Actions#SwitchMagazine|SwitchMagazine]]
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style='display:none'>Bottom Section</h3>
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:ArmA 2 OA: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]

Latest revision as of 11:54, 26 April 2023

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:
WeaponsTurrets

Syntax

Syntax:
transport loadMagazine [turretPath, weaponName, magazineName]
Parameters:
transport: Object
turretPath: Array format Turret Path
weaponName: String
magazineName: String
Return Value:
Nothing

Examples

Example 1:
vehicle player loadMagazine [[0], "m256", "20Rnd_120mmHE_M1A2"];

Additional Information

See also:
magazinesTurret addMagazineTurret reload weaponState setWeaponReloadingTime weapons magazines SwitchMagazine

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