self:set_use_as_steering

Client

Sets whether the wheel is used as a steering wheel


Syntax

local status = self:set_use_as_steering(
    state
)

Parameters

TypeNameDescription
boolstatetrue to make this a steering wheel, false otherwise

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Enable steering on a vehicle wheel
local car = physics.vehicle.create()
local entity = physics.vehicle_wheel.create(car)

entity:set_use_as_steering(true)

On this page