Make ACharacter bounce off the walls. Multiple OnComponentHit events problem

I was trying to check if there was hit last frame. OnComponentHit() sets the variable and Tick() resets it.
That doesn’t work. Turns out OnComponentHit is called several times in one tick.
So now I save tick count on hit and if hit happens in the same tick it’s ignored. That seems to be working.
I guess this will also help in cases of applying damage and playing sounds.