GetObjectCount

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.
GetObjectCount

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

Description

Get the number of spawned object instances from CreateObject.

Syntax

GetObjectCount()

Parameters

  • This function has no parameters.

Return Value

  • Returns total object count.

Example

print("Objects: " .. GetObjectCount())

See also