FlameyTheRandom Posted April 3, 2019 Share Posted April 3, 2019 (edited) Yep, it's me with flamey again BUT... i want him to take damage by being wet. Does anyone know how to do it? (and where i should put the code .w.) Edit: I mean, like WX-78 but without sparks Edited April 3, 2019 by FlameyTheRandom Forgot to add something Link to comment https://forums.kleientertainment.com/forums/topic/104524-making-character-take-damage-by-rain-water-etc-need-help-again/ Share on other sites More sharing options...
Ultroman Posted April 3, 2019 Share Posted April 3, 2019 Your character has a moisture component. Take a look at the code for that. It pushes an event called "moisturedelta" whenever the moisture level of your character changes. Link to comment https://forums.kleientertainment.com/forums/topic/104524-making-character-take-damage-by-rain-water-etc-need-help-again/#findComment-1173906 Share on other sites More sharing options...
FlameyTheRandom Posted April 3, 2019 Author Share Posted April 3, 2019 Huh, where i can actually find it because im not good at coding (poorly). Link to comment https://forums.kleientertainment.com/forums/topic/104524-making-character-take-damage-by-rain-water-etc-need-help-again/#findComment-1173911 Share on other sites More sharing options...
Well-met Posted April 3, 2019 Share Posted April 3, 2019 Look at how WX does it. prefabs/wx78.lua Link to comment https://forums.kleientertainment.com/forums/topic/104524-making-character-take-damage-by-rain-water-etc-need-help-again/#findComment-1174011 Share on other sites More sharing options...
Ultroman Posted April 3, 2019 Share Posted April 3, 2019 Take a look at my newcomer post. It will help introduce you to modding for DS and DST. Link to comment https://forums.kleientertainment.com/forums/topic/104524-making-character-take-damage-by-rain-water-etc-need-help-again/#findComment-1174015 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