self:set_engine_force

Client

Sets the per-wheel engine force override


Syntax

local status = self:set_engine_force(
    force
)

Parameters

TypeNameDescription
floatforcePer-wheel engine force override to apply

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Set the engine force of a vehicle wheel
local car = physics.vehicle.create()
local entity = physics.vehicle_wheel.create(car)

entity:set_engine_force(50)

On this page