update doc/*/scripting/events.md
This commit is contained in:
parent
a47bdc0409
commit
9444fa7937
@ -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…
x
Reference in New Issue
Block a user