Here’s my situation:
I have a pre-defined area where I want a player to be able to do an action. However, this action needs to come from a menu on the player’s screen. Essentially, the sequence would look like this:
- Player moves into area
- Player presses a button to bring up a UMG menu on their screen
- Player clicks a button on the UMG screen
- Action triggers(for example a light turns on)
I have the individual parts generally working, but I’m not sure how to do the replication properly between the server and the clients. I think what I need to do is this:
- OnComponentBeginOverlap is called on the server
- The player controller that caused the overlap event has a variable set, which will allow the client to pop up a UMG menu on their screen.
Is this the right way to do it? If so, how do I get the player controller of the actor that caused the overlap event?