It's an example.
You have to call the AI(); since there's an infinite loop involved, I recommend having a set waitfor = 0 in the proc so any place where you call AI() does not wait for the response.

The ideal location to call it would be when a person enters a region; other ineffecient methods includes calling when NPCs are created at New() and when the player's Move()

For testing purposes, I recommend having AI procedure called at Zombie/New() to make sure that the AI works then work on making it efficient.
Hey your code is working, I'm getting an error with the walk_to proc, it says only found 1 of 5 arguments. Any ideas? Thanks!
Requirements:

walk_to(Ref,Trg,Min=0,Lag=0,Speed=0)
Page: 1 2