DestroyObject
From Onset Developer Wiki
Description
Destroy an object created with CreateObject.
Syntax
DestroyObject(object)
Parameters
- object
The object identifier.
Return Value
- Returns true on success.
Example
local obj = CreateObject(1, 0.0, 0.0, 0.0)
DestroyObject(obj)