End a PvE game with Defeat

Hello,

I am testing a PvE game, where everyone is on the same team. There are no respawns and when everyone is dead, I want the game to end with a Defeat message. I can’t figure out how to do this.

I call Activate() on an EndGameDevice when the objectives of the map are complete, and this ends the game with a Victory message. But there doesn’t seem to be a way from a non-player (“the environement”) team to Win, and the player team to lose.

I have toggled various settings in the End Game Device and Island Settings in UEFN, but have not got this to work. One approach I tried was to call EndGameDevice.Activate() with a non-player Agent, but this still resulted in Victory for the player team.

Let me know whether this is possible, or any approaches that might get this to work.

Thanks.

Can someone please answer, i am struggling with this also!