unitTurret: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]2(\|.*)?\]\]" to "{{GameCategory|arma2|Scripting Commands}}")
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}")
Line 45: Line 45:
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]
{{GameCategory|tkoh|Scripting Commands}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Revision as of 21:46, 10 January 2021

Hover & click on the images for description

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

Notes

Bottom Section