addWeaponTurret: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - " |r1=[[" to " |r1= [[")
Line 25: Line 25:
|p4= turretPath: [[Array]]
|p4= turretPath: [[Array]]


|r1=[[Nothing]]
|r1= [[Nothing]]


|x1= <code>_tank [[addWeaponTurret]] ["LMG_M200", [0,0]];</code>
|x1= <code>_tank [[addWeaponTurret]] ["LMG_M200", [0,0]];</code>

Revision as of 23:34, 7 August 2021

Hover & click on the images for description

Description

Description:
Adds a weapon to the turret. Use turret path [-1] for driver's turret.
Groups:
Turrets

Syntax

Syntax:
vehicle addWeaponTurret [weaponName, turretPath]
Parameters:
vehicle: Object
[weaponName, turretPath]: Array
weaponName: String
turretPath: Array
Return Value:
Nothing

Examples

Example 1:
_tank addWeaponTurret ["LMG_M200", [0,0]];

Additional Information

See also:
removeWeaponTurretturretLocaladdMagazineTurretmagazinesTurretremoveMagazinesTurretremoveMagazineTurretweaponsTurretcurrentMagazineDetailTurretcurrentMagazineTurretcurrentWeaponTurretselectWeaponTurret

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


Posted on July 3, 2021 - 12:05 (UTC)
7erra
You can find out the turret path by entering the turret and checking with assignedVehicleRole player;