Thank you.
Unfortunately, this function does not work
But I learned a lot about the syntax thanks to your help !
For player Team1 eliminated by another player (Player Team2) i have this function :
OnPlayerElimination2(Player : ?agent) : void =
if (ValidPlayer := Player?):
TeleportDropR3_1.Teleport(ValidPlayer)
I also tried this function on a damage volume device by removing boolean condition (“eliminator?”) and activated “Self elimination” on the elimination manager.
OnPlayerFall(Player_ : agent) : void =
TeamCollection := GetPlayspace().GetTeamCollection()
if(
Team2 := GetPlayspace().GetTeamCollection().GetTeams()[0],
Team2Agents := TeamCollection.GetAgents[Team2],
ShuffledAgents := Shuffle(Team2Agents)
):
# Will store the first alive player into SelectedPlayerMaybe
var SelectedPlayerMaybe : ?player = false
for(Team2Agent : ShuffledAgents, not SelectedPlayerMaybe?, Player := player[Team2Agent], Player.GetFortCharacter[].IsActive[]):
set SelectedPlayerMaybe = option{Player}
if(SelectedPlayer := SelectedPlayerMaybe?):
TeleportDropR3_1.Teleport(SelectedPlayer)
Still not working
Maybe i did something wrong… your code seems to be absolutely clear and relevant to face my problem… but nothing is happening when i’m trying to trigger the current event.