Neu7ral Posted July 27, 2015 Share Posted July 27, 2015 Hello people, i need help in something for my mod.¿How i can make my character loss healt on fail a hit?Example: When you attack a pig and didn't hit because he ran awayI don't know how i can make this thing, but if you know i will be glad on help you. Also. Sorry for my bad english, Still learning. Link to comment https://forums.kleientertainment.com/forums/topic/56536-i-need-help-in-my-wip-mod/ Share on other sites More sharing options...
Finerlobster Posted July 28, 2015 Share Posted July 28, 2015 inst:ListenForEvent("onmissother", function() local damage = 10 --the amount of damage inst.components.health:DoDelta(-damage) end) Link to comment https://forums.kleientertainment.com/forums/topic/56536-i-need-help-in-my-wip-mod/#findComment-657979 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