addMagazineTurret: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "Category:Arma 2: Operation Arrowhead: New Scripting Commands List" to "Category:Arma 2: Operation Arrowhead: New Scripting Commands") |
m (Text replacement - "v1\.55\.[0-9]{6}" to "v1.56") |
||
Line 13: | Line 13: | ||
| Adds a magazine to the turret. Use turret path [-1] for driver's turret. | | Adds a magazine to the turret. Use turret path [-1] for driver's turret. | ||
Note: you may create invalid combinations by using this function, for example by adding 20 grenades. When doing so, application behaviour is undefined. Since Arma 3 v1. | Note: you may create invalid combinations by using this function, for example by adding 20 grenades. When doing so, application behaviour is undefined. Since Arma 3 v1.56 it is possible to set custom ammo count in added magazine. | ||
| vehicle '''addMagazineTurret''' [magazineName, turretPath, ammoCount] | | vehicle '''addMagazineTurret''' [magazineName, turretPath, ammoCount] | ||
Line 21: | Line 21: | ||
|p3= magazineName: [[String]] | |p3= magazineName: [[String]] | ||
|p4= turretPath: [[Array]] | |p4= turretPath: [[Array]] | ||
|p5= ammoCount (Optional): [[Number]] (''since Arma 3 v1. | |p5= ammoCount (Optional): [[Number]] (''since Arma 3 v1.56'') - required ammo count | ||
| [[Nothing]] | | [[Nothing]] |
Revision as of 10:21, 3 April 2021
Description
- Description:
- Description needed
- Groups:
- Turrets
Syntax
- Syntax:
- Syntax needed
- Parameters:
- vehicle: Object
- [magazineName, turretPath]: Array
- magazineName: String
- turretPath: Array
- ammoCount (Optional): Number (since Arma 3 v1.56) - required ammo count
- Return Value:
- Return value needed
Examples
- Example 1:
_tank addMagazineTurret ["SmokeLauncherMag",[0,0]];
- Example 2:
_tank addMagazineTurret ["20Rnd_120mmSABOT_M1A2",[0]];
Additional Information
- See also:
- addMagazineGlobaladdMagazineloadMagazineaddMagazinesaddMagazineCargoaddMagazineCargoGlobaladdMagazinePoolmagazinesTurretremoveMagazinesTurretremoveMagazineTurretweaponsTurretaddMagazineAmmoCargoaddWeaponTurretremoveWeaponTurretturretLocal
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