How can I call an event from gamemode on a client player controller?

Hi, on my gamemode on EventPostLogin I add the connected players to an array and call an event on my playercontroller. However this event only gets called on the server and I cant get it to work with my client. Any insight why?


image

This the player controller

,

and I get the “host” and “client” ref while spawning them like this;

I am trying to do this too…

Maybe we shouldn’t be doing what we’re trying to do lol

begin play runs on client too so to create your menu you dont need a RPC or switchhasauth just put an islocallycontrolled() before it

to update your player list first call the function on the server side which then calls a client RPC, or better yet just leave it on server and repnotify the variable

1 Like