Hi,
I would like to question how to use end_game_device on Verse code.
Please see the following code:
prop_teleport := class(creative_device):
@editable
EndRound<public> : end_game_device = end_game_device{}
OnBegin<override>()<suspends>:void=
Playspace: fort_playspace = GetPlayspace()
AllPlayers: []player = Playspace.GetPlayers()
for (Agent : AllPlayers):
EndARound(Agent)
EndARound<private>(Agent:agent)<suspends> : void =
EndRound.Activate(Agent)
In my test, if the first playter exit this game, other player’s round never end (Maybe because the first player exit, the first loop of for
cause Error and the later process is not executed.
How can I end a round even if any player in this game exit during Game playing?
Regards,