loadMagazine: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Fix ArmA 2 link)
m (Text replacement - "‎" to "")
 
(26 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.<br>
|game3= arma3
The turret has to be manned. One can also change the magazine if its respective weapon is not selected. |DESCRIPTION=
|version3= 0.50
____________________________________________________________________________________________


| transport [[loadMagazine]] [turretPath, weaponName, magazineName]|SYNTAX=
|gr1= Weapons


|p1= transport: [[Object]] |PARAMETER1=
|gr2= Turrets


|p2= turretPath: [[Array]] |PARAMETER2=
|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.


|p3= weaponName: [[String]] |PARAMETER3=
|s1= transport [[loadMagazine]] [turretPath, weaponName, magazineName]


|p4= magazineName: [[String]] |PARAMETER4=
|p1= transport: [[Object]]


| [[Nothing]] |RETURNVALUE=
|p2= turretPath: [[Array]] format [[Turret Path]]
____________________________________________________________________________________________


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


| [[magazinesTurret]], [[addMagazineTurret]], [[reload]], [[weaponState]], [[setWeaponReloadingTime]], [[weapons]], [[magazines]], [[Arma 3: Actions#SwitchMagazine|SwitchMagazine]]|SEEALSO=
|p4= magazineName: [[String]]


| |MPBEHAVIOUR=  
|r1= [[Nothing]]
____________________________________________________________________________________________


|x1= <sqf>vehicle player loadMagazine [[0], "m256", "20Rnd_120mmHE_M1A2"];</sqf>
|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 Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{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