ID:272152
 
how do i make it where when usr.walk=1 you cant walk? and sleep([number of seconds]) for each step so you cant just fly through the map.
mob
var/tmp/canwalk = 1
var/tmp/nextstep = 0
var/movespeed = 5

client/Move()
if(!mob.canwalk || world.time < mob.nextstep)
return 0
else
mob.nextstep = world.time + mob.movespeed
return ..()