Vital.sandbox
Model

self:get_type

Shared

Returns the type name of the instance


Syntax

local result = self:get_type()

Parameters

TypeNameDescription

Returns

TypeNameDescription
string / boolresultType of the instance, or false if unavailable

Examples

Get the type of a model instance
local entity = model.create("character")

engine.print("info", entity:get_type()) --'model'

On this page