GetObjectModel: Difference between revisions

From Onset Developer Wiki
No edit summary
No edit summary
 
Line 11: Line 11:


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua>
print("Object Model: " .. GetObjectModel(object))
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}

Latest revision as of 14:29, 26 June 2021

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