Welcome to Keen Software House Forums! Log in or Sign up to interact with the KSH community.
  1. You are currently browsing our forum as a guest. Create your own forum account to access all forum functionality.

How to properly end multiplayer scenarios?

Discussion in 'Visual Scripting' started by FateRunner, May 26, 2020.

Thread Status:
This last post in this thread was made more than 31 days old.
  1. FateRunner Trainee Engineer

    Hi, lately I have started creating my first scenario and I have some issues with ending it when somebody wins the game.

    This scenario is targeted for multiplayer and winner is player that build specific block first.
    At this moment when the victory condition is met I call SessionExitGameDialog to quit the game, but the issu is that it only works for host and not clients.

    Host gets the dialog but other players can still play until hosting player confirms that dialog and than everyone is kicked back to menu without any message. But this is not right in my opinion because if hosting player is not there than everyone can play and then are kicked without any notification.

    Here is my victory condition check as it is right now:

    Is there any better way to end scenario or should I just restart it and than let everyone leave by themself?
    Thanks in advance for any help and sorry for any mistakes in my english.
  2. doncdxx Apprentice Engineer

    With a multiplayer competitive campaign, I'd recommend a loop back to the beginning. Sometimes people might want to rematch a competitive game right away and a loop to the beginning would be quicker for the players than having to exit to main menu and reload the campaign.
Thread Status:
This last post in this thread was made more than 31 days old.