self:destroy

Client

Destroys the vehicle wheel instance and removes it from the scene


Syntax

local status = self:destroy()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Destroy a vehicle wheel instance
local car = physics.vehicle.create()
local entity = physics.vehicle_wheel.create(car)

entity:destroy()

On this page