mob
verb
Repulsion()
var/mob/M
for(M in oview(1))
step(M,usr.dir)
Problem description:
The problem is there not getting pushed the right direction. I want it so if there diagonal of me they move diagonally away and if there to the right of me they move away right. If that makes sense.The problem is usr.dir i think but i have no idea what to replace it with. Thanks in advance if anyone can help me.
Obviously using usr.dir makes them step in the player's direction.
WHY is everybody using usr ? Use src!
I think you could look up the step_away proc for this one, so basically something like:
Although I am unsure if the 3rd arg in step_away should be 1 or 2, because I never really use it. Just know that it's there.
Hiead