Environmental Blueprint changes every time a character jumps.

I’m trying to set up an effect where a platform flips every time a character jumps, like you see in Mario games. I am using Event Dispatchers and Listeners for this.

I am attempting to use ChatGPT to get this to work but it’s failing me.

In the Third Person character BP, after the Jump function, I have a call for my ‘OnJump’ Event Dispatcher. That’s fine. But then GPT starts to fail me. In the switching platform’s BP, I have created a ‘Rotate Platform’ Custom Event, followed by a ‘Timeline’ node. But GPT is telling me I need a ‘Event BeginPlay’ node, then to string out to ‘Get Player Character’, which I can’t. I can create it by right clicking… but GPT is getting things wrong hard here. I am pretty sure I need to get to casting to the Third Person character or something, but I don’t know what the node setup for this looks like tbh.

Once I have the player character referenced hopefully GPT is right from there on, and an if statement setup will get me to this platform flipping backwards and forwards every time the character jumps.

Any advice on how to proceed would be greatly appreciated.

Pictures would help. aside from that know that Get Player Character is a global function. There are several ways to achieve your goals. You can use OnEndOverlap in your platform BPs to detect the player jumping off.

Timeline components have an option to auto play on tick. You can select that so you don’t need to trigger the timeline or you can just trigger it when the player lands on the platform. GPT MIGHT be telling you to, from within the platform BPs, bind to any relevant Player events on Begin Play. You can do that by casting the return value of Get Player Character to your character BP.

Pictures of the effect I’m looking for? Here’s a video of the effect, should be timestamped. https://youtu.be/FzysBYMIi-o?si=2VaEfSYbprdx4qWm&t=205