mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
update doc/*/scripting/events.md
This commit is contained in:
parent
a47bdc0409
commit
9444fa7937
2 changed files with 2 additions and 2 deletions
|
|
@ -153,7 +153,7 @@ Emits an event by code. If the event does not exist, nothing will happen.
|
|||
The existence of an event is determined by the presence of handlers.
|
||||
|
||||
```lua
|
||||
events.unload(packid: str)
|
||||
events.remove_by_prefix(packid: str)
|
||||
```
|
||||
|
||||
Removes all events with the prefix `packid:`. When you exit the world, events from all packs are unloaded, including `core:`.
|
||||
|
|
|
|||
|
|
@ -152,7 +152,7 @@ events.emit(code: str, args...) -> bool
|
|||
Существование события определяется наличием обработчиков.
|
||||
|
||||
```lua
|
||||
events.unload(packid: str)
|
||||
events.remove_by_prefix(packid: str)
|
||||
```
|
||||
|
||||
Удаляет все события с префиксом `packid:`. Вы выходе из мира выгружаются события всех паков, включая `core:`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue