Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 3 Support (Qt 5) › MultiplayerUser connected property change locally

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #19577

    Sachintha Udara

    Hi There,

    Is there has any way to change MultiplayerUser`s connected property manually and change current player state in server side ?

    Cheers,

    Sachintha

    #19580

    Günther
    Felgo Team

    Hi,

    the connected property always reflects the actual state and is not changeable. To allow another player to get the slot, the old one has to be removed from the game. For slots where no player is not connected yet, it is possible to use VPlayMultiplayer::disablePlayer() or enablePlayer().

    You can also add custom logic to your game, to e.g. introduce a temporary “removed/left” state for a player which you can handle on your own, and which has nothing to do with actual connected state.

    Best,
    Günther

    #19582

    Sachintha Udara

    Hi Günther,

    How is it doing ? any possibility to extends vplay MultiplayerUser ?

    Best,

    Sachintha

    #19606

    Günther
    Felgo Team

    Hi,

    as said above, the connected property reflects the correct state and is not directly changeable. If you want to remove a player from a game, you can use VPlayMultiplayer::leaveGame().

    Best,
    Günther

Viewing 4 posts - 1 through 4 (of 4 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded