add entity:set_enabled(...)

This commit is contained in:
MihailRis
2025-01-21 05:31:07 +03:00
parent 13fde2116d
commit f2101f6504
6 changed files with 32 additions and 3 deletions
+3
View File
@@ -26,6 +26,9 @@ entity:get_uid() -> int
entity:get_component(name: str) -> component or nil
-- Checks for the presence of a component by name
entity:has_component(name: str) -> bool
-- Enables/disables the component
entity:set_enabled(name: str, enable: bool)
```
## Built-in components