Skip to content

Commit 4c55da6

Browse files
committed
update zh-Hans docs
1 parent 25eb9c6 commit 4c55da6

File tree

81 files changed

+625
-69
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+625
-69
lines changed

frontend/i18n/zh-Hans/docusaurus-plugin-content-docs/current/scripting/callbacks/OnNPCCreate.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ tags: ["npc"]
1111

1212
当 NPC 成功创建并添加到服务器时调用此回调。
1313

14-
| 名称 | 说明 |
14+
| 参数 | 说明 |
1515
| ----- | ------------------ |
1616
| npcid | 已创建的 NPC 的 ID |
1717

frontend/i18n/zh-Hans/docusaurus-plugin-content-docs/current/scripting/callbacks/OnNPCDestroy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ tags: ["npc"]
1111

1212
当 NPC 被销毁并从服务器移除时调用此回调。
1313

14-
| 名称 | 说明 |
14+
| 参数 | 说明 |
1515
| ----- | ------------------ |
1616
| npcid | 被销毁的 NPC 的 ID |
1717

frontend/i18n/zh-Hans/docusaurus-plugin-content-docs/current/scripting/callbacks/OnNPCFinishMove.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ tags: ["npc", "移动"]
1111

1212
当 NPC 完成移动到目标位置时调用此回调。
1313

14-
| 名称 | 说明 |
14+
| 参数 | 说明 |
1515
| ----- | -------------------- |
1616
| npcid | 完成移动的 NPC 的 ID |
1717

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
title: OnNPCFinishMovePathPoint
3+
sidebar_label: OnNPCFinishMovePathPoint
4+
description: 当NPC完成路径中特定点的移动时被调用
5+
tags: ["npc", "移动", "路径"]
6+
---
7+
8+
<VersionWarnZH_Hans version='omp v1.1.0.changemelater' />
9+
10+
## 描述
11+
12+
此回调函数在 NPC 完成路径中特定点的移动时被调用。
13+
14+
| 参数 | 说明 |
15+
| ------- | -------------------------- |
16+
| npcid | 完成路径点移动的 NPC 的 ID |
17+
| pathid | 正在遵循的路径的 ID |
18+
| pointid | 已到达的路径点的索引 |
19+
20+
## 示例
21+
22+
## 注意事项
23+
24+
- 此回调函数会为路径中的每个点触发
25+
- 使用 [OnNPCFinishMovePath](OnNPCFinishMovePath) 来检测整个路径何时完成
26+
- NPC 必须使用 [NPC_MoveByPath](../functions/NPC_MoveByPath) 沿路径移动
27+
28+
## 相关函数
29+
30+
- [NPC_MoveByPath](../functions/NPC_MoveByPath): 使 NPC 遵循路径移动
31+
- [NPC_CreatePath](../functions/NPC_CreatePath): 创建新路径
32+
- [NPC_AddPointToPath](../functions/NPC_AddPointToPath): 向路径添加点
33+
- [NPC_GetCurrentPathPointIndex](../functions/NPC_GetCurrentPathPointIndex): 获取当前路径点
34+
35+
## 相关回调函数
36+
37+
- [OnNPCFinishMovePath](OnNPCFinishMovePath): 当 NPC 完成整个路径时被调用
38+
- [OnNPCFinishMove](OnNPCFinishMove): 当 NPC 完成任何移动时被调用

frontend/i18n/zh-Hans/docusaurus-plugin-content-docs/current/scripting/callbacks/OnNPCRespawn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ tags: ["npc"]
1111

1212
当 NPC 重生时调用此回调。
1313

14-
| 名称 | 说明 |
14+
| 参数 | 说明 |
1515
| ----- | ---------------- |
1616
| npcid | 重生的 NPC 的 ID |
1717

frontend/i18n/zh-Hans/docusaurus-plugin-content-docs/current/scripting/callbacks/OnNPCSpawn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ tags: ["npc"]
99

1010
当 NPC 生成时调用此回调。
1111

12-
| 名称 | 说明 |
12+
| 参数 | 说明 |
1313
| ----- | ---------------- |
1414
| npcid | 生成的 NPC 的 ID |
1515

frontend/i18n/zh-Hans/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetEnteringVehicle.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ tags: ["npc", "车辆"]
1111

1212
获取 NPC 当前正在进入的车辆。
1313

14-
| 名称 | 说明 |
14+
| 参数 | 说明 |
1515
| ----- | --------- |
1616
| npcid | NPC 的 ID |
1717

frontend/i18n/zh-Hans/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetEnteringVehicleID.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ tags: ["npc", "车辆"]
1111

1212
获取 NPC 当前正在进入的车辆 ID。
1313

14-
| 名称 | 说明 |
14+
| 参数 | 说明 |
1515
| ----- | --------- |
1616
| npcid | NPC 的 ID |
1717

frontend/i18n/zh-Hans/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetEnteringVehicleSeat.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ tags: ["npc", "车辆"]
1111

1212
获取 NPC 在车辆中正在进入的座位。
1313

14-
| 名称 | 说明 |
14+
| 参数 | 说明 |
1515
| ----- | --------- |
1616
| npcid | NPC 的 ID |
1717

frontend/i18n/zh-Hans/docusaurus-plugin-content-docs/current/scripting/functions/NPC_GetFightingStyle.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ tags: ["npc", "战斗风格"]
1111

1212
获取 NPC 的战斗风格。
1313

14-
| 名称 | 说明 |
14+
| 参数 | 说明 |
1515
| ----- | --------- |
1616
| npcid | NPC 的 ID |
1717

0 commit comments

Comments
 (0)