ID:146854
 
I am having trouble with my flight code. When I use fly ingame, my character state changed, but the hair does not, and I have the states correctly matched. Please Help.



obj
flight
verb
Fly()
set name = "Fly"
set category = "Fighting"
if(usr.spar == 1)
usr << "Not while in combat."
if(usr.spar == 0)
if(usr.flight == 1)
usr << "You land on the ground!"
usr.density = 1
usr.flight = 0
usr.meditate = 0
usr.icon_state = ""
else
usr << "You rise into the air!"
usr.density = 0
usr.flight = 1
usr.meditate = 0
usr.icon_state = "buku"
obj
flight
verb
Fly()
set name = "Fly"
set category = "Fighting"
if(usr.spar == 1)
usr << "Not while in combat."
if(usr.spar == 0)
if(usr.flight == 1)
usr << "You land on the ground!"
usr.density = 1
usr.flight = 0
usr.meditate = 0
usr.icon_state = ""
else
usr << "You rise into the air!"
usr.density = 0
usr.flight = 1
usr.meditate = 0
usr.icon_state = "buku"


In this code... did you include the part of the hair icon with the flight..?
In response to Cascade
If you mean if my hair is coded in yes. According to my friend, when u change ur icons state it should change the hair's too, but when i try my flight, the hair is still in the blank state.
In response to FiredGoku
nvm i got it fixed