DestroyObject: Difference between revisions
From Onset Developer Wiki
No edit summary |
No edit summary |
||
Line 11: | Line 11: | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua"> | |||
local obj = CreateObject(1, 0.0, 0.0, 0.0) | |||
DestroyObject(obj) | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
* [[CreateObject]] | * [[CreateObject]] | ||
* [[IsValidObject]] | * [[IsValidObject]] |
Latest revision as of 20:55, 31 August 2020
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)