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
| Type | Name | Description |
|---|---|---|
bool | state | true to make this a steering wheel, false otherwise |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local car = physics.vehicle.create()
local entity = physics.vehicle_wheel.create(car)
entity:set_use_as_steering(true)