update doc/*/scripting/events.md

This commit is contained in:
MihailRis 2024-11-01 15:15:48 +03:00
parent a47bdc0409
commit 9444fa7937
2 changed files with 2 additions and 2 deletions

View File

@ -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:`.

View File

@ -152,7 +152,7 @@ events.emit(code: str, args...) -> bool
Существование события определяется наличием обработчиков.
```lua
events.unload(packid: str)
events.remove_by_prefix(packid: str)
```
Удаляет все события с префиксом `packid:`. Вы выходе из мира выгружаются события всех паков, включая `core:`.