Can't get my door open/shut code to work? (nothing happens)

I’m creating a basic open/close door system, I’m using a box collision in my door blueprint, so only when the player is in the collision AND pressing ‘G’ key, it will open the door. Nothing seems to happen when I press ‘G’ though and I can’t figure out what I did wrong, this is the code below:

I coded it all in the door blueprint so there’s nothing in the third person character BP.
Please let me know if you have any solutions to fix this.

this is also what’s in my timeline to control the door:


I was checking if the timeline is working by connecting it directly to begin play but it wasn’t moving at all. Not sure if this could also be a problem.

I greatly appreciate your time,
Thank you for any replies

1 Like

Your timeline is going from 0-1, ie, this

So you just can’t see it. It’s only moving 1 degree :slight_smile:

Either put 0-180 in the timeline, or use a lerp

3 Likes

thank you so much! works fine now :slight_smile:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.