my hud thing wont show up on my game.and there is no error eother
world
client
New()
new/obj/huds/Who(src.screen)
new/obj/huds/Say(src.screen)
new/obj/huds/Credits(src.screen)
..()
obj/huds
Who
name = "Who"
icon='huds.dmi'
icon_state="who"
layer=MOB_LAYER+6
screen_loc="1,2"
New(client/C)C.screen += src
Click()
If u could help please help me
usr.Who()
ID:148346
![]() Mar 22 2003, 2:17 pm (Edited on Mar 22 2003, 2:24 pm)
|
|
i tried what you guys posted with the who verb, but how would you do that for an attack command? I followed the same steps, and it doesnt have any errors, but it does when I go into the game, and click the button. Can anyone help me?
|
Shizuka wrote:
the hud objects should be created in src.client, not src.screen Actually you weren't far off, but there's a problem: That should just be src. The client has no client var. Lummox JR |
world
client
New()
new/obj/huds/Who(src.client)
new/obj/huds/Say(src.client)
new/obj/huds/Credits(src.client)
..()
obj/huds
Who
name = "Who"
icon='huds.dmi'
icon_state="who"
layer=MOB_LAYER+6
screen_loc="1,2"
New(client/C)C.screen += src
Click()
usr.Who()
also, indent the vars and procs that belong to Who.
I'm pretty sure this should work, but i'm not really the best programmer.