type

Returns the type of an object as a string. This includes standard Lua types and userdata types specific to this API.

Kind: Function

Environments: Game, Terrain

Game

type( object )

Open the full Game reference

Parameters:

Name Type Description
object any The object instance.

Returns:

Type Description
string The object type.

Terrain

type( object )

Open the full Terrain reference

Parameters:

Name Type Description
object any The object instance.

Returns:

Type Description
string The object type.