dudedudedude Posted July 6, 2017 Share Posted July 6, 2017 Can you help me with the code for regenerating an amount of health over x seconds after being hit/doing a certain thing? inst.components.health:DoDelta seems to continue the regeneration as long as the condition is satisfied, I want it to regen a certain amount only and then stop. Thanks for any help xD Link to comment Share on other sites More sharing options...
Lumina Posted July 6, 2017 Share Posted July 6, 2017 Were are you putting the code ? Could you provide entire function ? Link to comment Share on other sites More sharing options...
RedHairedHero Posted July 6, 2017 Share Posted July 6, 2017 DoDelta(amount, overtime, cause, ignore_invincible) Example inst.components.health:DoDelta(5, 10) This should heal 5 health every second for 10 seconds. Link to comment Share on other sites More sharing options...
dudedudedude Posted July 22, 2017 Author Share Posted July 22, 2017 omg thanks. Silly me I thought the overtime parameter meant "every x seconds". As I was learning to mod dst I got so busy midway, gonna go over the API tutorials more carefully now. thanks!! Link to comment 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