self:get_type

Client

Retrieves the type name of the instance


Syntax

local result = self:get_type()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
`stringbool`result

Examples

Get the type of a animatable body instance
local entity = physics.animatable.create()

core.engine.print("info", entity:get_type()) -- 'physics.animatable'

On this page