Model
self:destroy
Shared
Destroys the model instance and removes it from the scene
Syntax
local status = self:destroy()Parameters
| Type | Name | Description |
|---|
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, or false on failure |
Examples
local entity = model.create("character")
entity:destroy()