Setting overlap number of times on over lap actor

I have trigger box around attached to my enemy. How ever I don’t want him to day on first over lap when I throw granade. How can I tell the trigger to trigger on specific amount of overlaps. Let’s say on 5th overlap with granade then play death animation. Thank you!!!

well, you can use a variable to keep track of the number of overlaps… each time an overlap takes place, set the variable equal to variable plus one, then when it is equal to or above a certain number, then play the death animation.

but I think it might be better to do this using some kind of damage function, where a grenade causes damage each time it explodes… if an actor is inside the injury radius… take some health away each time. When health is zero, play the death animation

I think that’s good idea. How ever I just added delay and now it’s fine. So death animation doesn’t happens for 12 sec. So you can throw granades but death animation will be disabled for 12 sec. How ever the player doesn’t know that. So of course I’m sure they will be trying to kill the monster while 12 sec delay is on. lol.

Yes thank you damage control sound like a good idea and integer too. Thank you!!!