docs: Added onPlayerUseCheat and NPC related events

This commit is contained in:
AURUMVORXX
2024-11-06 11:49:08 +03:00
parent d54bd06fef
commit f6fd5893a4
7 changed files with 126 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
# `event` onNpcCreated
This event is triggered when remote NPC is created.
Original: [onNpcCreated](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/script-reference/server-events/npc/onNpcCreated/)
## Parameters
* `dict` **kwargs**:
* `int` **npc_id**: the id of the newly created remote npc.
## Usage
```python
import g2o
@g2o.event('onNpcCreated')
def onNpcCreate(**kwargs):
print(f'NPC {kwargs['npc_id']} has been created.')
```