update entity methods set
This commit is contained in:
@@ -15,8 +15,11 @@ The entity object is available in components as a global variable **entity**.
|
||||
-- Deletes an entity (the entity may continue to exist until the frame ends, but will not be displayed in that frame)
|
||||
entity:despawn()
|
||||
|
||||
-- Returns entity name (string ID)
|
||||
entity:get_name()
|
||||
-- Returns entity defintion index (integer ID)
|
||||
entity:def_index() -> int
|
||||
|
||||
-- Returns entity definition name (string ID)
|
||||
entity:def_name() -> str
|
||||
|
||||
-- Returns the name of the entity skeleton
|
||||
entity:get_skeleton() -> str
|
||||
|
||||
@@ -16,8 +16,11 @@ Lua.
|
||||
-- Удаляет сущность (сущность может продолжать существовать до завершения кадра, но не будет отображена в этом кадре)
|
||||
entity:despawn()
|
||||
|
||||
-- Возвращает имя сущности (строковый ID)
|
||||
entity:get_name()
|
||||
-- Возвращает индекс определения сущности (числовой ID)
|
||||
entity:def_index() -> int
|
||||
|
||||
-- Возвращает имя определения сущности (строковый ID)
|
||||
entity:def_name() -> str
|
||||
|
||||
-- Возращает имя скелета сущности
|
||||
entity:get_skeleton() -> str
|
||||
|
||||
Reference in New Issue
Block a user