turf
Click()
var/mob/User = usr//makes User the urs
User << "User initialized"
var/turf/movloc = src.loc //just in case another turf is clicked before this move is done
User << "Turf set"
while(User.loc != movloc.loc)//while user isnt on turf
User << "In while"
step_towards(User,movloc)//move towards turf
sleep(movedelay*2)//sleep the move delay*2
User << "After move"
Problem description:
(BTW the User<<"TEXT HERE" is to show if proc was stopped somwhere)
The code runs through perfectly fine... but the player does not move towards the turf and the code runs through infinitly because of this.
If you can spot the problem in the code (or have an easier way of doing this, or better code procedures) please post
Point of Duh: Look up the walk() series. Also, your User var is use-less.