| Author | Sticky: Post Working Scripts Here |
| weecc | Posted: Thursday, 04 July 03:48AM |
| Name: Yet Another Wandering Script What it does: YAWS takes a bunch of NPCs and makes them wander randomly between some predefined waypoints. How to use: Create some NPCs and give them all the same "NPC1" tag. In the script's unmodified state, create 8 waypoints, naming them "way_1", "way_2", ... "way_8". Put the script in the area's OnHeartbeat event. Notes: You can change the number of waypoints you want them to wander among, see the comments for details on how to do this. You can also combine this script with triggered areas to create some pretty complex flocking behaviour. All comments and feedback -> weecc@roots.com.my Here's the script:
|
|