turf/Click()
if(usr.oktothrow==1&&!usr.inthrowing)
if(usr.inthrowing)
return
var/obj/Weapon/C= new()
C.loc=usr.loc
C.str=usr.str
usr.inthrowing=1
C.Move_Delay=1
walk_towards(C,src)
sleep(5)
usr.inthrowing=0
Problem description:
I want to make a system that, when you click on the map, the char throws the weapon. I tried the above code, but it's not working, so, if you guys could help me.
Thanks a lot,
Tntgsh.
Also, you can use the new() proc's argument to set the location of the object being created.