self:set_engine_force

Client

Sets the whole-chassis engine force of the vehicle body


Syntax

local status = self:set_engine_force(
    force
)

Parameters

TypeNameDescription
floatforceEngine force to apply across the whole chassis

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Set the engine force of a vehicle body
local entity = physics.vehicle.create()

entity:set_engine_force(50)

On this page