Problem Get Player Controller Multiplayer LAN

how can i set a new player controller when a player enter in server/game?

because, now with Get player controller index 0 it get all player in server and animation,health ecc.ecc. doesn’t work properly.

thanks.

You trying to do that on server or client?

server.

I’m trying to do that on server, thanks.

wait, sorry. so you use “Get player controller index 0” everywhere? it will only get first player controller on list

yes, for the single player, but now i’d like to implement network(LAN) and i’ve got this problem.

my idea is, when a player enter in a started game it will assign a new “Get Player Controller” with an index +1.

Thanks for the answer.

but exist a function that know when a player enter in a started game (c++ or blueprint) or how do i let him know when a player enter in a started game?
thanks for your time.

GameMode class has series of events for player participation status and match status, here you got PostLogin when player connects to server and has ready PlayerController, this ofcorse work only on server

https://docs.unrealengine.com/latest/INT/API/Runtime/Engine/GameFramework/AGameMode/K2_PostLogin/index.html

If you can find event try searching in function overrides (hover over functions tab)