Skip to content

Commit b95e0e9

Browse files
committed
fix missing parameter tags in OnNPCWeaponShot callback description
1 parent 70fa760 commit b95e0e9

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

frontend/docs/scripting/callbacks/OnNPCWeaponShot.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ tags: ["npc", "weapon", "shooting"]
1111

1212
This callback is called when an NPC fires a weapon.
1313

14-
| Name | Description |
15-
| -------- | ------------------------------------------ |
16-
| npcid | The ID of the NPC that fired the weapon |
17-
| weaponid | The weapon ID that was fired |
18-
| hittype | The type of entity that was hit (if any) |
19-
| hitid | The ID of the entity that was hit (if any) |
20-
| fX | The X coordinate where the bullet hit |
21-
| fY | The Y coordinate where the bullet hit |
22-
| fZ | The Z coordinate where the bullet hit |
14+
| Name | Description |
15+
| ----------------------- | ------------------------------------------ |
16+
| npcid | The ID of the NPC that fired the weapon |
17+
| WEAPON:weaponid | The weapon ID that was fired |
18+
| BULLET_HIT_TYPE:hittype | The type of entity that was hit (if any) |
19+
| hitid | The ID of the entity that was hit (if any) |
20+
| Float:fX | The X coordinate where the bullet hit |
21+
| Float:fY | The Y coordinate where the bullet hit |
22+
| Float:fZ | The Z coordinate where the bullet hit |
2323

2424
## Returns
2525

frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnNPCWeaponShot.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ tags: ["npc", "武器", "射击"]
1111

1212
当 NPC 开火时调用此回调。
1313

14-
| 参数 | 说明 |
15-
| -------- | ------------------------ |
16-
| npcid | 开火的 NPC 的 ID |
17-
| weaponid | 开火的武器 ID |
18-
| hittype | 命中的实体类型(如果有) |
19-
| hitid | 命中的实体 ID(如果有) |
20-
| fX | 子弹击中的 X 坐标 |
21-
| fY | 子弹击中的 Y 坐标 |
22-
| fZ | 子弹击中的 Z 坐标 |
14+
| 参数 | 说明 |
15+
| ----------------------- | ------------------------ |
16+
| npcid | 开火的 NPC 的 ID |
17+
| WEAPON:weaponid | 开火的武器 ID |
18+
| BULLET_HIT_TYPE:hittype | 命中的实体类型(如果有) |
19+
| hitid | 命中的实体 ID(如果有) |
20+
| Float:fX | 子弹击中的 X 坐标 |
21+
| Float:fY | 子弹击中的 Y 坐标 |
22+
| Float:fZ | 子弹击中的 Z 坐标 |
2323

2424
## 返回值
2525

0 commit comments

Comments
 (0)