mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue