diff --git a/doc/en/scripting/ecs.md b/doc/en/scripting/ecs.md index 9636cf763..f8bce6d3f 100644 --- a/doc/en/scripting/ecs.md +++ b/doc/en/scripting/ecs.md @@ -36,6 +36,11 @@ entity:set_enabled(name: str, enable: bool) -- At components initialization -1 is also returned, -- since the binding occurs after initialization. entity:get_player() -> int or nil + +-- Checks the 'selectable' property of an entity (raycast opacity) +body:is_selectable() -> bool +-- Sets the value of the 'selectable' property of an entity +body:set_selectable(flag: bool) ``` ## Custom Components diff --git a/doc/ru/scripting/ecs.md b/doc/ru/scripting/ecs.md index cb4a79bec..be99774d5 100644 --- a/doc/ru/scripting/ecs.md +++ b/doc/ru/scripting/ecs.md @@ -134,6 +134,11 @@ body:set_elasticity(elasticity: number) -- Возвращает скорость поверхности, на которой находится тело, либо {0,0,0} body:get_ground_vel() -> vec3 + +-- Проверяет свойство 'selectable' у сущности (непрозрачность для лучей) +body:is_selectable() -> bool +-- Устанавливает значение свойство 'selectable' у сущности +body:set_selectable(flag: bool) ``` ### Skeleton