update doc/*/scripting/ecs.md
This commit is contained in:
parent
bf79f6bc75
commit
c110fafbcf
@ -29,6 +29,9 @@ entity:has_component(name: str) -> bool
|
|||||||
|
|
||||||
-- Enables/disables the component
|
-- Enables/disables the component
|
||||||
entity:set_enabled(name: str, enable: bool)
|
entity:set_enabled(name: str, enable: bool)
|
||||||
|
|
||||||
|
-- Returns id of player the entity is bound
|
||||||
|
entity:get_player() -> int or nil
|
||||||
```
|
```
|
||||||
|
|
||||||
## Built-in components
|
## Built-in components
|
||||||
|
|||||||
@ -29,6 +29,9 @@ entity:has_component(name: str) -> bool
|
|||||||
|
|
||||||
-- Включает/выключает компонент по имени
|
-- Включает/выключает компонент по имени
|
||||||
entity:set_enabled(name: str, enable: bool)
|
entity:set_enabled(name: str, enable: bool)
|
||||||
|
|
||||||
|
-- Возвращает id игрока, к которому привязана сущность
|
||||||
|
entity:get_player() -> int или nil
|
||||||
```
|
```
|
||||||
|
|
||||||
## Встроенные компоненты
|
## Встроенные компоненты
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user