telekinesis in Developer Help
|
|
well im having some problems with this system. i want to make it so when u hit the verb u pick an obj then u can move it but it can move it?
client/obj
North()
if(src.mob.Moveobj!=null)
step(src.mob.Moveobj,North)
return
..()
client/obj
South()
if(src.mob.Moveobj!=null)
step(src.mob.Moveobj,South)
return
..()
client/obj
East()
if(src.mob.Moveobj!=null)
step(src.mob.Moveobj,East)
return
..()
client/obj
West()
if(src.mob.Moveobj!=null)
step(src.mob.Moveobj,West)
return
..()
mob/verb
Telekavorka(obj/O in view())
usr.Moveobj= O
O.Move()
mob/var/obj/Moveobj
any1 have ideas?
|
and for telekinesis, try using MouseDrag, you can make it move with your mouse! it would be something like this
obj
MouseDrag(src_location)
src.loc=src_location