Temporarily disable collision

Hello,

I’d like know how to make a blueprint script, were when the main character gets hit/damaged (that’s already in the script btw) the collisions are temporarily disabled. I’m making a 2D platformer, and I want the main character not to continuesly get hit by moving enemies.

So I was thinking too temporarily disable collisions so that the enemies continue walking without hitting the main character.