File tree Expand file tree Collapse file tree 2 files changed +14
-14
lines changed
i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -11,13 +11,13 @@ tags: ["npc", "damage"]
1111
1212This callback is called when an NPC takes damage from a player or another NPC.
1313
14- | Name | Description |
15- | --------- | ---------------------------------------------------- |
16- | npcid | The ID of the NPC that took damage |
17- | issuerid | The ID of the player/NPC that caused the damage |
18- | amount | The amount of damage that was taken |
19- | weaponid | The weapon ID used to cause the damage |
20- | bodypart | The [ body part] ( ../resources/bodyparts ) that was hit |
14+ | Name | Description |
15+ | --------------- | ---------------------------------------------------- |
16+ | npcid | The ID of the NPC that took damage |
17+ | issuerid | The ID of the player/NPC that caused the damage |
18+ | Float : amount | The amount of damage that was taken |
19+ | WEAPON : weaponid | The weapon ID used to cause the damage |
20+ | bodypart | The [ body part] ( ../resources/bodyparts ) that was hit |
2121
2222## Returns
2323
Original file line number Diff line number Diff line change @@ -11,13 +11,13 @@ tags: ["npc", "伤害"]
1111
1212当 NPC 受到来自玩家或其他 NPC 的伤害时调用此回调。
1313
14- | 参数 | 说明 |
15- | -------- | ------------------------------------------ |
16- | npcid | 受到伤害的 NPC 的 ID |
17- | issuerid | 造成伤害的玩家/NPC 的 ID |
18- | damage | 受到的伤害数量 |
19- | weaponid | 用于造成伤害的武器 ID |
20- | bodypart | 被击中的[ 身体部位] ( ../resources/bodyparts ) |
14+ | 参数 | 说明 |
15+ | --------------- | ------------------------------------------ |
16+ | npcid | 受到伤害的 NPC 的 ID |
17+ | issuerid | 造成伤害的玩家/NPC 的 ID |
18+ | Float : damage | 受到的伤害数量 |
19+ | WEAPON : weaponid | 用于造成伤害的武器 ID |
20+ | bodypart | 被击中的[ 身体部位] ( ../resources/bodyparts ) |
2121
2222## 返回值
2323
You can’t perform that action at this time.
0 commit comments