selectWeaponTurret: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "<h3 style='display:none'>Notes</h3> <dl class='command_description'> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> <h3 style='display:none'>Bottom Section</h3>" to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma3 | | arma3 | ||
|1.12 | |1.12 | ||
|gr1= Turrets | |gr1= Turrets | ||
| Selects the given weapon on specified turret. Use turret path [-1] for driver's turret. Since ver. 1.63.136864 this command supports both weapon name and muzzle name. | | Selects the given weapon on specified turret. Use turret path [-1] for driver's turret. Since ver. 1.63.136864 this command supports both weapon name and muzzle name. | ||
| vehicle '''selectWeaponTurret''' [weapon, turretPath] | | vehicle '''selectWeaponTurret''' [weapon, turretPath] | ||
|p1= vehicle: [[Object]] | |p1= vehicle: [[Object]] | ||
|p2= [weapon, turretPath]: [[Array]] | |p2= [weapon, turretPath]: [[Array]] | ||
|p3= weapon: [[String]] - weapon class name or muzzle class name | |p3= weapon: [[String]] - weapon class name or muzzle class name | ||
|p4= turretPath: [[Array]] | |p4= turretPath: [[Array]] | ||
| [[Nothing]] | | [[Nothing]] | ||
|x1= <code>MBT_Kuma [[selectWeaponTurret]] ["LMG_coax",[0]];</code> | |x1= <code>MBT_Kuma [[selectWeaponTurret]] ["LMG_coax",[0]];</code> | ||
| [[removeWeaponTurret]], [[weaponState]], [[turretLocal]], [[addMagazineTurret]], [[magazinesTurret]], [[removeMagazinesTurret]], [[removeMagazineTurret]], [[weaponsTurret]], [[currentMagazineDetailTurret]], [[currentMagazineTurret]], [[currentWeaponTurret]], [[addWeaponTurret]] | | [[removeWeaponTurret]], [[weaponState]], [[turretLocal]], [[addMagazineTurret]], [[magazinesTurret]], [[removeMagazinesTurret]], [[removeMagazineTurret]], [[weaponsTurret]], [[currentMagazineDetailTurret]], [[currentMagazineTurret]], [[currentWeaponTurret]], [[addWeaponTurret]] | ||
| | | | ||
}} | }} | ||
Revision as of 11:02, 18 January 2021
Description
- Description:
- Selects the given weapon on specified turret. Use turret path [-1] for driver's turret. Since ver. 1.63.136864 this command supports both weapon name and muzzle name.
- Groups:
- Turrets
Syntax
- Syntax:
- vehicle selectWeaponTurret [weapon, turretPath]
- Parameters:
- vehicle: Object
- [weapon, turretPath]: Array
- weapon: String - weapon class name or muzzle class name
- turretPath: Array
- Return Value:
- Nothing
Examples
- Example 1:
MBT_Kuma selectWeaponTurret ["LMG_coax",[0]];
Additional Information
- See also:
- removeWeaponTurretweaponStateturretLocaladdMagazineTurretmagazinesTurretremoveMagazinesTurretremoveMagazineTurretweaponsTurretcurrentMagazineDetailTurretcurrentMagazineTurretcurrentWeaponTurretaddWeaponTurret
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 February 13, 2017 - 16:54 (UTC)
- Killzone Kid
- The command will treat weapon or muzzle param like a weapon first. If no such weapon is found then it will try to find muzzle with such name. For example AMV-7 Marshall APC has main gun "autocannon_40mm_CTWS" which has 2 muzzles "HE" and "AP". Default muzzle is "HE". So if you try to select weapon by the name "autocannon_40mm_CTWS" you will always get "HE" muzzle selected. However if you pass "AP" as param, it will correctly select "AP" muzzle, since no "AP" weapon exists on this turret it will continue searching for a muzzle with this name and will find it eventually.