turretUnit: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<tt>([^= ]+)<\/tt>" to "{{hl|$1}}") |
Lou Montana (talk | contribs) |
||
Line 28: | Line 28: | ||
|x2= <code>[[vehicle]] [[player]] [[turretUnit]] [0];</code> | |x2= <code>[[vehicle]] [[player]] [[turretUnit]] [0];</code> | ||
|seealso= [[unitTurret]] | |seealso= [[unitTurret]] [[driver]], [[gunner]], [[commander]], [[effectiveCommander]], [[currentPilot]], [[moveInTurret]], [[assignAsTurret]], [[assignedVehicleRole]], [[lockedTurret]], [[isTurnedOut]] | ||
}} | }} |
Revision as of 19:24, 20 January 2022
Description
- Description:
- Returns the unit in the vehicle turret. Driver turret [-1] is supported since Arma 3 v1.58. To find turret path of known unit see unitTurret
- Groups:
- Turrets
Syntax
- Syntax:
- vehicle turretUnit turretpath
- Parameters:
- vehicle: Object
- turretpath: Array
- Return Value:
- Object
Examples
- Example 1:
_vehicle turretUnit _thisTurret;
- Example 2:
vehicle player turretUnit [0];
Additional Information
- See also:
- unitTurret drivergunnercommandereffectiveCommandercurrentPilotmoveInTurretassignAsTurretassignedVehicleRolelockedTurretisTurnedOut
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