mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 04:21:50 +00:00
update entity methods set
This commit is contained in:
parent
d285ffb2f7
commit
3549c1f326
4 changed files with 13 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue