DestroyObject: Difference between revisions
From Onset Developer Wiki
Created page with "{{Info|Function|Server|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|DestroyObject(object)}} {{FuncParameters}} {{FuncParam|object|__EDIT_ME__}} {{FuncReturnValue|__E..." |
No edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{Info|Function|Server|1.0}} | {{Info|Function|Server|1.0}} | ||
{{FuncDescription| | {{FuncDescription|Destroy an object created with [[CreateObject]].}} | ||
{{FuncSyntax|DestroyObject(object)}} | {{FuncSyntax|DestroyObject(object)}} | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam|object| | {{FuncParam|object|The object identifier.}} | ||
{{FuncReturnValue| | {{FuncReturnValue|Returns '''true''' on success.}} | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua"> | |||
local obj = CreateObject(1, 0.0, 0.0, 0.0) | |||
DestroyObject(obj) | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
* [[CreateObject]] | |||
* [[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)