DJPaul Posted May 4, 2015 Share Posted May 4, 2015 Newish to DST modding, and it's the first time I've run into an issue with something not working clientside (but works fine serverside), so I'm hoping for some points. Am vaguely aware of RPCs/net_variables.GLOBAL.ThePlayer.components.health:GetPercent()...components.health() is not set on the clientside. I'm trying to find out the current player's health, and I naively assumed that since the UI draws the player's health, that the value would exist client-side in some readable state, but apparently not. What do I need to do? Link to comment https://forums.kleientertainment.com/forums/topic/53526-getting-players-health-client-side/ Share on other sites More sharing options...
DarkXero Posted May 4, 2015 Share Posted May 4, 2015 (edited) ThePlayer.player_classified.currenthealth:value() Edited May 4, 2015 by DarkXero Link to comment https://forums.kleientertainment.com/forums/topic/53526-getting-players-health-client-side/#findComment-634553 Share on other sites More sharing options...
DJPaul Posted May 4, 2015 Author Share Posted May 4, 2015 Ah hah, thanks. That sets me on the right track. Link to comment https://forums.kleientertainment.com/forums/topic/53526-getting-players-health-client-side/#findComment-634561 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