Quantcast
Channel: Recent Discussions — Photon Engine
Viewing all articles
Browse latest Browse all 15755

Player.getIsMasterClient() giving wrong result?

$
0
0
Hey, I have this function from LoadBalancingListener override
void PhotonLoadBalancingListener::joinRoomEventAction(int playerNr, 
const ExitGames::Common::JVector<int>& playernrs, const ExitGames::LoadBalancing::Player& player)
and everytime I do

if (PhotonLBClient->getLocalPlayer().getIsMasterClient()),
it is always returning true for every player, even for new player joins.

I also tried taking player from the function parameter and calling
player.getIsMasterClient(), it's also returning true all the time.

Am i doing the wrong things? do I need to loop manually through all integer JVector and get the lowest one to check if it is master client?

Viewing all articles
Browse latest Browse all 15755

Latest Images

Trending Articles



Latest Images