if(locate(M) in oview(src,1))
//Stuff happens
else
src << "\red [M] is too far away to continue fighting."
src.fighting = 0
return
Problem description:
The problem is when I'm next to M the part in the if() works perfectly. When I am not next to M for some reason the else does not go through, nothing happens. What am I doing wrong? And how can I fix this?