FurryEskimo Posted February 5, 2021 Share Posted February 5, 2021 (edited) I'm not sure how, since this seems pretty vital to the entire game, but my ghost registers as alive, with 0.29% (0.5 hp) life.. [00:01:10]: Player is alive. [00:01:10]: 0.28571428571429 Any suggestions? I just need to tell when I'm a ghost, but 'IsDead' doesn't work.. function Health:IsDead() return self.currenthealth <= 0 end Edited February 5, 2021 by FurryEskimo Link to comment https://forums.kleientertainment.com/forums/topic/126732-instcomponentshealthisdead-doesnt-work/ Share on other sites More sharing options...
IronHunter Posted February 5, 2021 Share Posted February 5, 2021 If you are a ghost I believe you get a inst:HasTag("playerghost")tag 2 1 1 Link to comment https://forums.kleientertainment.com/forums/topic/126732-instcomponentshealthisdead-doesnt-work/#findComment-1425571 Share on other sites More sharing options...
FurryEskimo Posted February 5, 2021 Author Share Posted February 5, 2021 Thanks! That appears to work! Still, it's a little strange that the default code from Klei doesn't work, I wonder how they decide when a player dies. Link to comment https://forums.kleientertainment.com/forums/topic/126732-instcomponentshealthisdead-doesnt-work/#findComment-1425758 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now