addWeaponTurret: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " |r1=[[" to " |r1= [[")
m (Some wiki formatting)
Line 19: Line 19:
|p1= vehicle: [[Object]]
|p1= vehicle: [[Object]]


|p2= [weaponName, turretPath]: [[Array]]
|p2= weaponName: [[String]]


|p3= weaponName: [[String]]
|p3= turretPath: [[Array]]
 
|p4= turretPath: [[Array]]


|r1= [[Nothing]]
|r1= [[Nothing]]
Line 32: Line 30:
}}
}}


 
{{Note
<dl class="command_description">
|user= 7erra
<dt></dt>
|timestamp= 20210603120500
<dd class="notedate">Posted on July 3, 2021 - 12:05 (UTC)</dd>
|text= You can find out the turret path by entering the turret and checking with
<dt class="note">[[User:7erra|7erra]]</dt>
<dd class="note">
You can find out the turret path by entering the turret and checking with
<code>[[assignedVehicleRole]] [[player]];</code>
<code>[[assignedVehicleRole]] [[player]];</code>
</dd>
}}
</dl>

Revision as of 01:36, 27 November 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: 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
7erra - c
Posted on Jun 03, 2021 - 12:05 (UTC)
You can find out the turret path by entering the turret and checking with assignedVehicleRole player;