moving other mobs in Developer Help
|
|
mob player/Move() if(moveallowed) var/mob/m=locate(/mob)in usr.target if(!m) ..() icon_state="M" sleep(8) icon_state="P" else step(m,m.dir) else return 0
|
Of course this doesn't work because i'm not changing m's direction before i make it step. How would i do this?
|
This is very simple at any case, but you know that you need to change a variable, but you don't know HOW to do it? Thats what you said, and it makes no sense; you should start from scratch with beginner coding tutorials and the DM Guide.
Even that it would still be simple, I assume you forgot to mention you mean to modify 'm.dir' in a specific way which you don't know how to accomplish. If so, state how you want to modify it...