update doc/*/scripting/ecs.md

This commit is contained in:
MihailRis 2025-04-11 19:25:13 +03:00
parent bf79f6bc75
commit c110fafbcf
2 changed files with 6 additions and 0 deletions

View File

@ -29,6 +29,9 @@ entity:has_component(name: str) -> bool
-- Enables/disables the component
entity:set_enabled(name: str, enable: bool)
-- Returns id of player the entity is bound
entity:get_player() -> int or nil
```
## Built-in components

View File

@ -29,6 +29,9 @@ entity:has_component(name: str) -> bool
-- Включает/выключает компонент по имени
entity:set_enabled(name: str, enable: bool)
-- Возвращает id игрока, к которому привязана сущность
entity:get_player() -> int или nil
```
## Встроенные компоненты