Item count not working

Hi guys.

So I have these collectables, and each time they are collected, an integar variable (named Points) on my Character blueprint goes up by 1 (beginning at 0)
Now upon reaching 7 I want a certain object to begin rotating in the scene.
My current setup is not working - the object begins rotating instantly even though I’ve not yet collected any of the pick ups.
The points do increase by 1 each time I pick the item up (I have print stringed it), and the PointsReq var is set to 7.

Here is my script:

Any help would be greatly appreciated!

Thanks.

theres all kinds of errors with your script but this is a pretty simple thing to script so here we go. with this example im assuming that you just want to turn the bridge into position when the player collects enough points and that you dont want the bridge to continue spinning.

the method implemented in the below picture was chosen due to simplicity and because its self contained, there are however other methods that are event oriented. anyways the method in the picture below activates a timer that runs the script every 2 seconds and checks the value of the players point. if the points are above 7 then it uses the timeline to turn the bridge.

now i will outline a few of the problems with your script. first your script was only being run when the actor is first created so it was only being run once. this means that even if you made it to 7 points nothing would happen. your method of flow control was also a little wonky but probably would have worked for the most part. the next major thing is your set node, the issue here was that its execution pin wasnt connected to anything so it would never be run.

Hi ThompsonN13! Thanks for your response.
Actually I did want the bridge to be continuously rotating. Your explanation and script was very helpful!

This is what I ended up with

: