Any insight while this collision occurs twice?

Any insight onto why I seem to trigger this box twice when I first walk into it?
I have tag: ‘player’ under Actor in the BP_FirstPersonCharacter(self)

After some debuggin I believe it’s related to this movement part of the script, the box is supposed to move to a new position after being collided with but I think when it moves it causes a second collision.

movement

If you’re moving the box after the collision, you could well get another event.

It’s best to just put a DoOnce node there if you only want to count one.

Also, that second graph is connected to nothing. Is that right?

I disconnected it temporarily yes.
I ended up doing a flag system (recommend by ai) that I set a false/true on the beginning end of the code to execute it only once, which did work, but a ‘do once’ sounds like the same thing but simpler so I will try and implement that.

1 Like

You could disable collision or overlap events on the Box just before you move it. Re-enable when you get to the move to location.

With a Do Once you have to reset it eventually. So either will work.