#How to cancel healing? (if Possible)

1 messages · Page 1 of 1 (latest)

formal marlin
#

I am wanting to be able to test if the player is healing, cancel it, get the amount they were trying/about to be healed and then apply it to something else

lethal furnace
#

in entityHealthChanged event, if newValue is larger than oldValue, set the current value of health component

#

you will have to make sure it only fires when newValue is larger than oldValue, otherwise it will go into infinite loop

formal marlin
#

@lethal furnace so issue, havent tested it yet but i think i found a possible issue, since im making a new health system in my script and i want to be able to test any possible healing, so if instant health is used then it will try even if it only heals 1 health but still grab the value of 4 from what it would heal

#

just thought to leave input even tho i havent used it yet lol

#

just worried is all