GetObjectModel

From Onset Developer Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
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