Miraculously I figured out a way to do this. This is the event setup I have:
<img src="http://stevemazzaro.com/Patrol1.png" border="0" />
With the Patrol function being:
<img src="http://stevemazzaro.com/Patrolfunction.png" border="0" />
This works relatively well, but for some reason after they chase me a bit, if I am out of the red box, they will stop, but after running in and out of the box, eventually they stop patrolling altogether. I can't figure out what it is I do that stops them from Patrolling, but the second I'm on the red box, they're back to chasing me.
Can anyone see what's wrong with this setup?
Also another small issue, occasionally they seem to stutter a bit on the patrol function, but not always.