turretUnit: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) |
Lou Montana (talk | contribs) m (Text replacement - "\|seealso= *\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 ") |
||
Line 28: | Line 28: | ||
|x2= <code>[[vehicle]] [[player]] [[turretUnit]] [0];</code> | |x2= <code>[[vehicle]] [[player]] [[turretUnit]] [0];</code> | ||
|seealso= [[unitTurret]] [[driver]] [[gunner]] [[commander]] [[effectiveCommander]] | |seealso= [[unitTurret]] [[driver]] [[gunner]] [[commander]] [[effectiveCommander]] [[currentPilot]], [[moveInTurret]], [[assignAsTurret]], [[assignedVehicleRole]], [[lockedTurret]], [[isTurnedOut]] | ||
}} | }} |
Revision as of 20:56, 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 driver gunner commander effectiveCommander currentPilotmoveInTurretassignAsTurretassignedVehicleRolelockedTurretisTurnedOut
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