ID:155102
 
how do you push someone back but have them stay them same direction they are currently facing? I know you have to save their direction from what i heard but I dunno how
If you don't know how to store variables then providing you with a snippet won't do anything but give you a line of code you don't know how to use.

I suggest that you look at some tutorials, but nonetheless, here you go:
mob/proc/Push(var/pushDir)//direction of the push
var/savedDir=src.dir
step(src,pushDir)
src.dir=savedDir