Is it possible to detect when a player is attached to a pawn and call an event from that?
Im currently working on game where teams of 4 players race row boats. The row boat pawns aren’t possessed by anyone, rather the player pawns get attached to sockets in the row boat and can add a impulse to the boat pawn via input. I have currently got it working with 4 players in one boat, but now need to move on to adding the different teams. With my current blueprints I’m pretty confident any player inputs are going to affect every boat pawn, not just the one they are attached to. I need to figure out a way to detect which boat a player is attached to, and only send inputs to that boat.
Additionally, I’m currently drawing the UI for the boat controls after player login. However I think it’ll be cleaner if the UI is only drawn once the player gets attached to the boat so in the case that I want to add some sort of spectating feature in the future, the boat UI wont get called unless the players is currently in a boat.