GetObjectModel

From Onset Developer Wiki
GetObjectModel

Type: Function
Context: Server & Client
Introduced: v1.0

Description

Get the object model number ob a spawned object. See Objects.

Syntax

GetObjectModel(object)

Parameters

  • object
    The object identifier.

Return Value

  • Returns the object model number as an integer.

Example

print("Object Model: " .. GetObjectModel(object))

See also