add entities.name(...) and entity:get_name(...)

This commit is contained in:
MihailRis
2024-07-17 20:15:45 +03:00
parent ec4043bc12
commit 5a3f28f2b5
6 changed files with 22 additions and 0 deletions
+3
View File
@@ -15,6 +15,9 @@ entities.spawn(name: str, pos: vec3, [optional] args: table)
-- Checks the existence of an entity by a unique identifier.
entities.exists(uid: int) -> bool
-- Returns entity name (string ID).
entities.name(uid: int) -> str
-- Returns a table of all loaded entities
entities.get_all() -> table