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
| Type | Name | Description |
|---|---|---|
| `string | bool` | result |
Examples
local body = physics.rigid.create()
local entity = physics.collision_shape.create(body)
core.engine.print("info", entity:get_type()) -- 'physics.collision_shape'