The myWaypointGroup var of AI.js allows you to set which waypoint group the NPC should follow. The new AutoWayPoint.js script checks the waypointGroup number of a waypoint and groups the waypoints based on their shared waypointGroup number, even if the waypoint groups can see each other. To improve the NPC patrolling behavior, we added the var myWaypointGroup to the AI.js script and added the waypointGroup var to AutoWayPoint.js script. The reason the NPCs in the demo scene follow their own sets of waypoints is due to the fact that the separate waypoint groups cannot "see" the other groups. The NPCs in the 1.16 code follow the waypoints that are nearest to them and the waypoints are grouped based on their line of sight to other waypoints. Click to expand.In the current version (1.16) there isn't a way to define which waypoints the NPC follows.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |