- Documentation
- Server functions
- getVehicleTurretPosition
Function
getVehicleTurretPosition
Returns the turret rotation stored with setVehicleTurretPosition (horizontal, vertical in radians; 0, 0 by default).
Syntax
float, float getVehicleTurretPosition(vehicle vehicle)Arguments
vehiclevehicle- The vehicle.
Returns
Horizontal and vertical rotation.
Example
local tank = createVehicle(432, 300, 1900, 18)
local h, v = getVehicleTurretPosition(tank)