启动地图编辑器,打开一个单机关卡地图,进入AIGraph节点区,将所有节点显示,然后点击本软件的“开始记录”,然后去点击那些红色的方块就可以进行对应命令的记录。
记录出来的效果示例如下:
Task_New(3814, "PatrolPath", "", -1,
Task_New(3813, "PatrolPathCommand", "Walks to node id 5", 2, 5, -1, "", ""),
Task_New(3812, "PatrolPathCommand", "Runs to node id 52", 3, 52, -1, "", ""),
Task_New(3811, "PatrolPathCommand", "End script, only runs commands after this one. Takes no paramet", 6, 0, -1, "", ""),
Task_New(3810, "PatrolPathCommand", "Walks to node id 85", 2, 85, -1, "", ""),
Task_New(3809, "PatrolPathCommand", "Delays the script execution for 300 ticks", 1, 300, -1, "", ""),
Task_New(3808, "PatrolPathCommand", "Crouch. Takes no parameters", 4, 0, -1, "", ""),
Task_New(3807, "PatrolPathCommand", "Walks to node id 81", 2, 81, -1, "", ""),
Task_New(3806, "PatrolPathCommand", "Runs to node id 136", 3, 136, -1, "", ""),
Task_New(3805, "PatrolPathCommand", "End script, only runs commands after this one. Takes no paramet", 6, 0, -1, "", ""),
Task_New(3804, "PatrolPathCommand", "Walks to node id 144", 2, 144, -1, "", ""),
Task_New(3803, "PatrolPathCommand", "Walks to node id 142", 2, 142, -1, "", ""),
),
然后用文本编辑器写进object.qsc的对应位置,打开地图编辑器重新加载object.qsc
----------------------------------分割线----------------------------------
过程细节不是上面这几句话能说清楚的。
记录出来的效果示例如下:
Task_New(3814, "PatrolPath", "", -1,
Task_New(3813, "PatrolPathCommand", "Walks to node id 5", 2, 5, -1, "", ""),
Task_New(3812, "PatrolPathCommand", "Runs to node id 52", 3, 52, -1, "", ""),
Task_New(3811, "PatrolPathCommand", "End script, only runs commands after this one. Takes no paramet", 6, 0, -1, "", ""),
Task_New(3810, "PatrolPathCommand", "Walks to node id 85", 2, 85, -1, "", ""),
Task_New(3809, "PatrolPathCommand", "Delays the script execution for 300 ticks", 1, 300, -1, "", ""),
Task_New(3808, "PatrolPathCommand", "Crouch. Takes no parameters", 4, 0, -1, "", ""),
Task_New(3807, "PatrolPathCommand", "Walks to node id 81", 2, 81, -1, "", ""),
Task_New(3806, "PatrolPathCommand", "Runs to node id 136", 3, 136, -1, "", ""),
Task_New(3805, "PatrolPathCommand", "End script, only runs commands after this one. Takes no paramet", 6, 0, -1, "", ""),
Task_New(3804, "PatrolPathCommand", "Walks to node id 144", 2, 144, -1, "", ""),
Task_New(3803, "PatrolPathCommand", "Walks to node id 142", 2, 142, -1, "", ""),
),
然后用文本编辑器写进object.qsc的对应位置,打开地图编辑器重新加载object.qsc
----------------------------------分割线----------------------------------
过程细节不是上面这几句话能说清楚的。