ID:2186311
 
(See the best response by Kozuma3.)
I'm trying to define the mob's current direction as old_dir and check it against its new direction after it moves or turns. However, whenever I try to old_dir = dir, it returns an error expected a constant expression. I really don't even know what I'm doing wrong her.
Best response
Will need to see how you're doing it code-wise.
I did manage a solution but I realized that path would crash the server every time I used it unless I was running some massively powerful hardware, so c'est la vie.