ID:261474
 
switch(input("Which Kind Of Hair Would You Like","Hair?")in list("Spiky","Split Short","Split Long"))
if("Spiky")
hair=/obj/spikehair
character.name = charactername //set the name
src.client.mob = character //now, we change the player to this newly defined mob!
usr.overlays = hair


heres the section of my login code thar controls the hair when the user logs in it dosn't add the hair they selcted
usr.overlays += hair
In response to Sariat
nah i tried that already it didnt work
In response to Strange Kidd
hair= new/obj/spikehair
In response to Sariat
switch(input("Which Kind Of Hair Would You Like","Hair?")in list("Spiky","Split Short","Split Long"))
if("Spiky")
hair= new/obj/spikehair
character.name = charactername //set the name
src.client.mob = character //now, we change the player to this newly defined mob!
usr.overlays+=hair


If you meant that, it didn't work
In response to Strange Kidd
I've tried many thing but nothing works. Does anyone know why?
var/mob/character
switch(input("Which Kind Of Hair Would You Like","Hair?")in list("Spiky","Split Short","Split Long"))
if("Spiky")
character.overlays+=obj here//thats what you need to do
character.name = charactername //set the name
src.client.mob = character //now, we change the player to this newly defined mob!
del(src)
In response to Super16
THANKS SUPER