DestroyObject

From Onset Developer Wiki
Revision as of 20:55, 31 August 2020 by BlueMountains (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
DestroyObject

Type: Function
Context: Server
Introduced: v1.0

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)

See also