ID:261493
 
I have the Click() proc in the turf/grass so when you click on the grass it should run the bellow code.

grass
name="Grass"
icon_state="grass"
Click(src)
if(usr:activeunit==null)
usr << "No unit selected."
else
usr << "Moving."
walk_towards(usr:activeunit,src:loc,6)

Notice I am trying to moce the variable usr:activeunit which is. A mob I have stored there using the bellow code.

Click(src)
if(usr:active==0)
usr:active=1
usr:activeunit=src
usr:mousetop = new /obj/mouse(locate(src:x,src:y+1,src:z))
usr:mousetop:icon_state="mouse[usr:color]"

When I click on that mob it should add it to the usrs var activeunit like in the above code right? Then when I press a turf it should move the usr:activeunit or the mob I clicked to that position right? Well it doesnt all it says is Moving. and never moves.

Can you please help me I am lost and I dont think I can figure out this one.