obj/hud
join
icon='hud.dmi'
icon_state="join"
New(client/C)
screen_loc = "1,1"
Click()
mob/createcharacter
var/mob/character
Login()
if(players<= 0)
src <<"You are the host!Welcome!"
src.AddVerbs()
host = src
world<<"[src] has joined the world"
character = new /mob/player/Player()
new/obj/hud/join(client)
src.loc = locate(2,2,1)
src.client.mob = character
..()
ID:146840
![]() Jan 10 2005, 6:25 pm
|
|
I have been trying to make a HUD but the code isnt working here is the code can someone tell me whats wrong. any help would be great thanks.
|
You need to add the object to client.screen. For example:
obj/hud
join
icon='hud.dmi'
icon_state="join"
New(client/C)
screen_loc = "1,1"
C.screen += src
Click()