Proc wont do its thing. in Developer Help
|
|
Its a Hud, its suppost to change if theres a mob in the view of the person, But it doesnt, so there must be somthing im doing wrong. Does any one know?
proc Update_Enemy(mob/M as mob) for(var/obj/Enemy/C in M.client.screen) C.icon_state="1" for(var/mob/L in world) for(L in view()) if(M == L) return if(L) C.icon_state="2" else C.icon_state="1"
|
|
Update_Enemy(mob/M as mob)
for(var/obj/Enemy/C in M.client.screen)
for(L in view(M))
if(M == L) return
if(L)
C.icon_state="2"
else
C.icon_state="1"
That might fix it, though I don't know what L is. Also I deleted C.icon_state="1" because if this is something that is constantly updated, your going to get it switching back and fourth between icon_states if L is true.