docs: Updated docs for 2.0.0 version
This commit is contained in:
18
docs/defaultEvents/npc/onNpcCreated.md
Normal file
18
docs/defaultEvents/npc/onNpcCreated.md
Normal 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 pyg2o as g2o
|
||||
|
||||
@g2o.event('onNpcCreated')
|
||||
async def onNpcCreate(npc_id):
|
||||
print(f'NPC {npc_id} has been created.')
|
||||
```
|
||||
Reference in New Issue
Block a user