unitTurret: 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 | ||
|2.00 | |2.00 | ||
|gr1= Turrets | |gr1= Turrets | ||
| Returns the turret path the given vehicle's gunner is in. <tt>[-1]</tt> is returned if gunner is driver. When unit is not in any of vehicle's turret, empty array <tt>[]</tt> is returned. To get unit in turret see [[turretUnit]] | | Returns the turret path the given vehicle's gunner is in. <tt>[-1]</tt> is returned if gunner is driver. When unit is not in any of vehicle's turret, empty array <tt>[]</tt> is returned. To get unit in turret see [[turretUnit]] | ||
| vehicle [[unitTurret]] gunner | | vehicle [[unitTurret]] gunner | ||
|p1= vehicle: [[Object]] | |p1= vehicle: [[Object]] | ||
|p2= gunner: [[Object]] | |p2= gunner: [[Object]] | ||
|p3 | |p3= | ||
| [[Array]] - turret path | | [[Array]] - turret path | ||
|x1= <code>_vehicle [[unitTurret]] _gunner;</code> | |x1= <code>_vehicle [[unitTurret]] _gunner;</code> | ||
|x2= <code>[[vehicle]] [[player]] [[unitTurret]] [[player]];</code> | |x2= <code>[[vehicle]] [[player]] [[unitTurret]] [[player]];</code> | ||
| [[turretUnit]], [[driver]], [[gunner]], [[commander]], [[effectiveCommander]], [[currentPilot]], [[moveInTurret]], [[assignAsTurret]], [[assignedVehicleRole]], [[lockedTurret]], [[isTurnedOut]] | | [[turretUnit]], [[driver]], [[gunner]], [[commander]], [[effectiveCommander]], [[currentPilot]], [[moveInTurret]], [[assignAsTurret]], [[assignedVehicleRole]], [[lockedTurret]], [[isTurnedOut]] | ||
| | | | ||
}} | }} | ||
Revision as of 11:43, 18 January 2021
Description
- Description:
- Returns the turret path the given vehicle's gunner is in. [-1] is returned if gunner is driver. When unit is not in any of vehicle's turret, empty array [] is returned. To get unit in turret see turretUnit
- Groups:
- Turrets
Syntax
- Syntax:
- vehicle unitTurret gunner
- Parameters:
- vehicle: Object
- gunner: Object
- Return Value:
- Array - turret path
Examples
- Example 1:
_vehicle unitTurret _gunner;
- Example 2:
vehicle player unitTurret player;
Additional Information
- See also:
- turretUnitdrivergunnercommandereffectiveCommandercurrentPilotmoveInTurretassignAsTurretassignedVehicleRolelockedTurretisTurnedOut
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