File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed
i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -11,11 +11,11 @@ tags: ["npc"]
1111
1212This callback is called when an NPC dies.
1313
14- | Name | Description |
15- | -------- | --------------------------------------------------------------------------- |
16- | npcid | The ID of the NPC that died |
17- | killerid | The ID of the player/NPC that killed the NPC (or INVALID_PLAYER_ID if none) |
18- | reason | The reason for death (weapon ID or death cause) |
14+ | Name | Description |
15+ | ------------- | --------------------------------------------------------------------------- |
16+ | npcid | The ID of the NPC that died |
17+ | killerid | The ID of the player/NPC that killed the NPC (or INVALID_PLAYER_ID if none) |
18+ | WEAPON : reason | The reason for death (weapon ID or death cause) |
1919
2020## Examples
2121
Original file line number Diff line number Diff line change @@ -11,11 +11,11 @@ tags: ["npc"]
1111
1212当 NPC 死亡时调用此回调。
1313
14- | 参数 | 说明 |
15- | -------- | ----------------------------------------------------------- |
16- | npcid | 死亡的 NPC 的 ID |
17- | killerid | 击杀 NPC 的玩家/NPC 的 ID(如果没有则为 INVALID_PLAYER_ID) |
18- | reason | 死亡原因(武器 ID 或死亡原因) |
14+ | 参数 | 说明 |
15+ | ------------- | ----------------------------------------------------------- |
16+ | npcid | 死亡的 NPC 的 ID |
17+ | killerid | 击杀 NPC 的玩家/NPC 的 ID(如果没有则为 INVALID_PLAYER_ID) |
18+ | Weapon : reason | 死亡原因(武器 ID 或死亡原因) |
1919
2020## 示例
2121
You can’t perform that action at this time.
0 commit comments