ID:263471
 
Code:
step_away(M,usr,4)


Problem description:
Here's what the problem is, i tryed the ocde above, but it doesn't push the mob 4 squares, why is that?
You have to provide more code than that...
mob/verb
Push()
set category="Atack"
set name="Push"
for(var/mob/M in get_step(usr,usr.dir))
step_away(M,usr,4)


That's the full code. I don't why it only pushing the mob only one square instead of 4 squares
In response to Sayian Hunter
Sayian Hunter wrote:
mob/verb
Push()
set category="Atack"
set name="Push"
for(var/mob/M in get_step(usr,usr.dir))
step_away(M,usr,4)


That's the full code. I don't why it only pushing the mob only one square instead of 4 squares

step_away(Ref,Trg,Max=5)

Max is the number of tiles away the mob can be for it to be able to push. Search step_away in the ref to get a full definition.