How to end a round of a game with end game device?b

Hi,

Please tell me way to use end game device in Verse code to end a round of a game.
With the follwing code, I tried to end a round and start next round.

However, when starting Fortnite on UEFN, it seems that this ends a game, not a round because round result is not shown as the first attached movie.
Like the second attached movie, I would like to end a round.

How should I change the code?

Thank you.

@editable
    EndGame<public> : end_game_device = end_game_device{}

    OnBegin<override>()<suspends>:void=
               Playspace: fort_playspace = GetPlayspace()
               var AllPlayers: []player = Playspace.GetPlayers()
               if (FirstPlayer : player = AllPlayers[0]):
                      EndRound(FirstPlayer)

    EndRound<private>(Agent:agent)<suspends> : void =
        EndGame.Activate(Agent)

End game device property setting on the level

Winning Team:	Winning Team
Activating Team:	Any
What to End:	End Round

Try using the round_settings_device

*added a Delay at your OnBegin, so that it’s easier to test

@editable
    EndRound<public> : round_settings_device = round_settings_device {}

    OnBegin<override>()<suspends>:void=
               Playspace: fort_playspace = GetPlayspace()
               var AllPlayers: []player = Playspace.GetPlayers()
               if (FirstPlayer : player = AllPlayers[0]):
                      Sleep(1.0) #added in delay
                      Print("SpawningEndRound") #added in print
                      EndRound(FirstPlayer)

    EndRound<private>(Agent:agent)<suspends> : void =
        Print("RoundEnded") #added in print
        EndRound.EndRound(Agent)

Hi,

Thank you very much for your reply.
I tried to use your code, setting “round setting” prop on the level and assign it to the creative device.

The result is the same with the first picture of my above post, Moving to edit mode session after execting EndRound.EndRound(Agent) on Fortnite from UEFN.
(The attached movie shows that after “RoundEnded” is printed in Log, this game moves to the edit mode)

However, because using “EndRound” method of round_settings_device class, it seems to me that round would be ended and move to the next round when playing this game on Fortnite.

On your enviroment of UEFN, round is ended and move to the next?

Hello! Do you have more than 1 round set within the island settings details panel?

if you number of rounds is only 1, then it would end the game basically…

Thank you,

I set ‘25’ in “Total Rounds” item and game screen show the same, so this is not possibly the cause.

However, as you said, the cause seems to lie in “island settings”.

My island setings are followings (“Total Round” item has ‘25’);
Is there any problem on it? (I set 5 player spawn on the level)

|Voice Chat|All
|Max Players|100
|Teams|Free For All
|Team Size|Dynamic
|Default Class Identifier|No Class
|Revert To Default Class At|End of Round,
|Spawn Limit (Toggle On and Off)|10
|After Last Spawn Go To|Team Index, Team Index
|Total Rounds|25
|Team Rotation (Toggle On and Off)|False,
|End Game On Match Point Win|False
|Team Visuals Determined At|Round Start
|Time Limit (Toggle On and Off)|false
|Fastest Time Win|False
|All Teams Must Finish|False
|Game Win Condition|Most Score Wins,
|Eliminations to End (Toggle On and Off)|False
|AI Eliminations to End (Toggle On and Off)|False
|Objectives To End (Toggle On and Off)|False
|Collect Items to End (Toggle On and Off)|False
|Collect Item Count|False
|Score to End (Toggle On and Off)|False
|Last Standing Ends Game|False
|Join In Progress|Spawn
|Spawn Location|Spawn Pads
|Spawn Pad Selection|Random
|Respawn Type|Individual
|Post-Game Spawn Location|Island Start
|Only Allow Respawn If Spawn Pads found|False
|Auto Start|False
|Game Start Countdown|3.0
|Elimination Score|0.0,
|Assist Score|0.0,

ラウンド デバイスを使う必要ありません。エンド ゲーム デバイスを使用して、Activate(Agent) を呼び出すだけです。複数のラウンドを設定している場合、システムは自動的に次のラウンドに進みます。

ありがとうございます。

最初の投稿通り、当初はエンドゲームの仕掛けを使ってActivate(Agent)しようとしていました。しかし、ラウンドではなくゲームが終了してしまう事象が発生したため現在も原因を調査しているところになります。

@editable
    EndGame<public> : end_game_device = end_game_device{}

    OnBegin<override>()<suspends>:void=
               Playspace: fort_playspace = GetPlayspace()
               var AllPlayers: []player = Playspace.GetPlayers()
               if (FirstPlayer : player = AllPlayers[0]):
                      EndRound(FirstPlayer)

    EndRound<private>(Agent:agent)<suspends> : void =
        EndGame.Activate(Agent)

最初の投稿の際もエンドゲームの仕掛け自体は「ラウンド終了」に設定していたのですが、他に設定すべきところなどありますでしょうか?(島設定のラウンド設定も下記の通り複数ラウンドで設定しています)


よろしくお願いします。