Hover over Actor in Multiplayer

Hey there, thank you for reading!

I have an event that causes my cursor to change color depending on what actor the cursor is hovered over–cursor is green if hovered over a friendly actor, red if an enemy actor, and default color if neither are true.

In single player this was easy to do as I could use an Event ActorBeginCursorOver on the actor itself and cast to the gameMode to change the cursor color. How can I accomplish this when there are multiplayer player controllers? ActorBeginCursorOver does not seem to know which player is hovering over it.

I tried a few things with using BindEvent to OnBeginCursor over on the actual playercharacter and casting to the desired actor–but I can not get that function to even fire (tried bindinging it from BeginPlay on the playercontroller).

Any thoughts? What is the correct approach?

255012-cursorhover1.png

255011-cursorhover2.png

Perhaps it would work to simply have the controller handle it instead of the hovered actor. The controller knows who itself is.

Thank you for the response! That is what I ended up doing–the player controller has an event tick on it that checks for hit results under cursor by channel–then I use that to see if a relevant actor is underneath the cursor and go from there. Not sure that is the most efficient method (it might be), but it works! Thank you!