self:get_type
Shared
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 | Type of the instance, false if unavailable |
Examples
local entity = util.timer.create(function(count)
core.engine.print("info", "Counter:", count)
end, 1000, 1)
core.engine.print("info", entity:get_type()) -- 'timer'