self:scale_local

Client

Scales the vehicle body in its own local coordinate space


Syntax

local status = self:scale_local(
    scale
)

Parameters

TypeNameDescription
vector3scaleScale factor to apply as {x, y, z}

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Scale a vehicle body locally
local entity = physics.vehicle.create()

entity:scale_local({2, 2, 2})

On this page