![]() We're going to add more detailed descriptions of the AI and non-FPS scripts. If anyone else wants these updated scripts before the next version is released, you can send us a PM as well.Ĭlick to expand.Thanks rcgmhds! The documentation is going to get an update soon. I'll send you a PM with the new scripts that you can add to your project. So with the updated scripts, you could have two NPCs patrolling side-by-side and within sight of each other using different patrol paths. 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. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |