How do i detect when a unit stops touching hiding hole

i wanna detect when a unit touches hiding hole, hidden animation plays and health is locked.
now, i put that in entity scripts of the hole


so, now i need to detect when the unit stops touching then show and set normal hp, and i don’t know how

2 Likes

There isn’t a trigger for “stop touching” event, but you could accomplish this by checking whether the unit is touching the hole periodically

4 Likes

this can also be accomplished by using a while loop, with a script inside sset to lower the hp like how you want it to, and then after the loop, where it will only run once the conditions are no longer true, it can set the health back up.