Problem Setting Enemy Variable with Function (Top-Down View)

ello everyone, I’m having trouble implementing a knockback system in my top-down game. I created a function that should set an enemy’s variable to TRUE after a collision with the player’s attack.

However, the enemy’s variable is not being changed. I believe the problem might be in how I’m passing the enemy object as a parameter to the function within the collision event.

You should probably handle the whole knock back system with a behavior.
https://wiki.gdevelop.io/gdevelop5/behaviors/events-based-behaviors/