addWeaponTurret: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " |r1=[[" to " |r1= [[") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 19: | Line 19: | ||
|p1= vehicle: [[Object]] | |p1= vehicle: [[Object]] | ||
|p2= | |p2= weaponName: [[String]] | ||
|p3 | |p3= turretPath: [[Array]] | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
Line 32: | Line 30: | ||
}} | }} | ||
{{Note | |||
|user= 7erra | |||
|timestamp= 20210603120500 | |||
|text= You can find out the turret path by entering the turret and checking with | |||
You can find out the turret path by entering the turret and checking with | |||
<code>[[assignedVehicleRole]] [[player]];</code> | <code>[[assignedVehicleRole]] [[player]];</code> | ||
}} | |||
Revision as of 00:36, 27 November 2021
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
- Posted on Jun 03, 2021 - 12:05 (UTC)
-
You can find out the turret path by entering the turret and checking with
assignedVehicleRole player;