loadMagazine: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...)
m (Text replacement - "‎" to "")
 
(21 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command
{{RV|type=command


| arma2oa
|game1= arma2oa
|version1= 1.60


|1.60
|game2= tkoh
|version2= 1.00
 
|game3= arma3
|version3= 0.50


|gr1= Weapons
|gr1= Weapons
Line 9: Line 14:
|gr2= Turrets
|gr2= Turrets


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


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


|p1= transport: [[Object]]
|p1= transport: [[Object]]


|p2= turretPath: [[Array]]
|p2= turretPath: [[Array]] format [[Turret Path]]


|p3= weaponName: [[String]]
|p3= weaponName: [[String]]
Line 22: Line 27:
|p4= magazineName: [[String]]
|p4= magazineName: [[String]]


| [[Nothing]]
|r1= [[Nothing]]
 
|x1= <code>[[vehicle]] [[player]] [[loadMagazine]] [<nowiki/>[0], "m256", "20Rnd_120mmHE_M1A2"];</code>
 
| [[magazinesTurret]], [[addMagazineTurret]], [[reload]], [[weaponState]], [[setWeaponReloadingTime]], [[weapons]], [[magazines]], [[Arma 3: Actions#SwitchMagazine|SwitchMagazine]]


| |MPBEHAVIOUR=  
|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}}}}]]
{{GameCategory|arma2|Scripting Commands}}
{{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