Hey everyone, i just TRIED creating a script for a character that follows a player if a player trail exists, if not it will just continue to follow waypoints.
;Artificial Intelligence Script
;header
desc = AI that follows waypoint, when finds plr trail it follows and stops when at equal distance
desc = Note! - Doesn't work with lifts, or when plr has to jump to certain areas!
:waypointstate=0:waypointstart,waypointstate=1
:waypointstate=1:waypointstate=2
:waypointstate=2:waypointstate=3
:waypointstate=3:waypointstate=4
:waypointstate=5:waypointreverse,waypointstate=2
:state=0,ifplrtrail=0:state=1
:state=1,ifplrtrail=1:waypointstop,state=0
:state=2:followplr,state=1
:state=3,plrdistwithin=500,plrdistfurther=400,plrcanbeseen:rotatetoplr,animate=1,state=2
:state=4,plrcannotbeseen:state=0
;End Of Script
Try it out!
(And yes i am a noob at scripting!)