This is my code for the HUD button which should Hide the usr behind the object
var/obj/hud/Hide/A = new() //Defines the HUD
obj/hud/Hide
icon='Hide.dmi'
screen_loc="1,1"
New()
usr.client.screen+=src
Click()
for(var/obj/hud/Hide/O in oview(1))
if(usr.loc==O.loc)
usr.loc=locate(O.x,O.y+1,O.z)
else
usr.loc=O.loc
This is how it is defined under the object
Cloud1
icon = 'Cloud.dmi'
icon_state="1"
layer=6
density=1
verb
Hide()
set src in oview(1)
if(usr.it)
return
else if(usr.frozen)
return
else
usr.loc=locate(src.x,src.y,src.z)
Shake()
set src in oview(1)
if(usr.it)
src.icon_state="Shake2"
spawn(10)
src.icon_state="2"
var/mob/m = locate(/mob) in src.loc
if(m)
m.loc = locate(src.x,src.y-1,src.z)
else
return
else
return
Problem description: sorry for having so many questions on here but I've tried everything I can do to get this to work but to no avail. Any Ideas?
Lummox JR