How can I teleport players to a waiting room when some condition is met and eliminate players who don't meet that condition?

I want to eliminate half of the players who don’t meet a condition and keep half of the players who do meet that condition. Then I want to repeat this again for the surviving players.

Once a player meets the condition, I want them to be in some waiting room or maybe despawn. Then respawn or be relocated to some dynamic location after half of the players meet the condition.

Is this possible with UEFN and Verse at the moment somehow? Thanks :slight_smile:

I would use Verse, but maybe there’s a way in creative, I guess it depends on your condition and map design :

var PlayersToRelocate : []player = array{}

AllPlayers := GetPlayspace().GetPlayers() # all players, even dead ones
for(Player : AllPlayers, Character := Player.GetFortCharacter[]):
    if(INSERT_CONDITION_HERE?):
        INSERT_TELEPORTER_HERE.Teleport(Player) # the waiting room way
        # todo: the despawn way?
        PlayersToRelocate += array{Player}
    else:
        Character.SetVulnerability(true)
        Character.Damage(99999.9)

Sleep(5.0)
for(Player : PlayersToRelocate):
    OTHER_TP.Teleport(Player)

You can then put this in a function and call it multiple times whenever you need to.

I’ve made it all by memory, maybe the Teleport() function is Activate() I’m not sure.

Hope it leads you somewhere, good luck!

1 Like

Thanks for the idea. I didn’t know there was a teleporter_device class until now. I will give it a shot and see how it goes.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.