loadMagazine: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]3(\|.*)\]\]" to "{{GameCategory|arma3|Scripting Commands}}")
m (Text replacement - "‎" to "")
 
(24 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


|gr1= Weapons |GROUP1=
|game3= arma3
|version3= 0.50


|gr2= Turrets |GROUP2=
|gr1= Weapons
____________________________________________________________________________________________


| 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>
|gr2= Turrets
The turret has to be manned. One can also change the magazine if its respective weapon is not selected. |DESCRIPTION=
____________________________________________________________________________________________


| transport [[loadMagazine]] [turretPath, weaponName, magazineName]|SYNTAX=
|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.


|p1= transport: [[Object]] |PARAMETER1=
|s1= transport [[loadMagazine]] [turretPath, weaponName, magazineName]


|p2= turretPath: [[Array]] |PARAMETER2=
|p1= transport: [[Object]]


|p3= weaponName: [[String]] |PARAMETER3=
|p2= turretPath: [[Array]] format [[Turret Path]]


|p4= magazineName: [[String]] |PARAMETER4=
|p3= weaponName: [[String]]


| [[Nothing]] |RETURNVALUE=
|p4= magazineName: [[String]]
____________________________________________________________________________________________


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


| [[magazinesTurret]], [[addMagazineTurret]], [[reload]], [[weaponState]], [[setWeaponReloadingTime]], [[weapons]], [[magazines]], [[Arma 3: 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 Arma 2|{{uc:{{PAGENAME}}}}]]
{{GameCategory|arma3|Scripting Commands}}

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