update entity methods set

This commit is contained in:
MihailRis
2024-07-18 12:08:43 +03:00
parent d285ffb2f7
commit 3549c1f326
4 changed files with 13 additions and 6 deletions
+5 -2
View File
@@ -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