update doc/*/scripting/events.md
This commit is contained in:
@@ -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.
|
The existence of an event is determined by the presence of handlers.
|
||||||
|
|
||||||
```lua
|
```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:`.
|
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
|
```lua
|
||||||
events.unload(packid: str)
|
events.remove_by_prefix(packid: str)
|
||||||
```
|
```
|
||||||
|
|
||||||
Удаляет все события с префиксом `packid:`. Вы выходе из мира выгружаются события всех паков, включая `core:`.
|
Удаляет все события с префиксом `packid:`. Вы выходе из мира выгружаются события всех паков, включая `core:`.
|
||||||
|
|||||||
Reference in New Issue
Block a user