self:get_engine_force

Client

Retrieves the whole-chassis engine force of the vehicle body


Syntax

local value = self:get_engine_force()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
floatvalueCurrent engine force

Examples

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

core.engine.print("info", "Vehicle body engine force:", entity:get_engine_force())

On this page