mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 05:51:51 +00:00
Add on_entity_spawned and on_entity_despawned events
This commit is contained in:
parent
936a5c8525
commit
518d5d5ae4
8 changed files with 75 additions and 1 deletions
|
|
@ -180,6 +180,10 @@ rig:get_color() -> vec3
|
|||
rig:set_color(color: vec3)
|
||||
```
|
||||
|
||||
> [!WARNING]
|
||||
> When an entity moves outside the loaded area, it is removed, triggering the event.
|
||||
> When it re-enters the loaded area, the entity is spawned again.
|
||||
|
||||
## Component events
|
||||
|
||||
```lua
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue