diff --git a/doc/en/scripting/builtins/libentities.md b/doc/en/scripting/builtins/libentities.md index cb46a3a53..9108fbdf9 100644 --- a/doc/en/scripting/builtins/libentities.md +++ b/doc/en/scripting/builtins/libentities.md @@ -15,7 +15,8 @@ entities.get(uid: int) -> table -- prefix - component pack id -- name - component name -- component prefix and name are separated with two underscores -entities.spawn(name: str, pos: vec3, [optional] args: table) +-- Returns an entity object +entities.spawn(name: str, pos: vec3, [optional] args: table) -> table -- Checks the existence of an entity by a unique identifier. entities.exists(uid: int) -> bool diff --git a/doc/ru/scripting/builtins/libentities.md b/doc/ru/scripting/builtins/libentities.md index 1e0cc6c0e..ad0e5b2ac 100644 --- a/doc/ru/scripting/builtins/libentities.md +++ b/doc/ru/scripting/builtins/libentities.md @@ -15,7 +15,8 @@ entities.get(uid: int) -> table -- префикс - id пака -- имя - название компонента -- префикс и имя компонента разделяются двумя подчеркиваниями -entities.spawn(name: str, pos: vec3, [optional] args: table) +-- Возвращает обьект сущности +entities.spawn(name: str, pos: vec3, [optional] args: table) -> table -- Проверяет наличие сущности по уникальному идентификатору. entities.exists(uid: int) -> bool