Summary
[CRITICAL] Player.IsActive succedes after OnPlayerRemovedEvent
Here is an fatal error produced on trying to Teleport a Player that is not longer in the game, although is was checked IsActive before trying to teleport
LogVerse: Warning: Game_teleport_to_debug_log: (Rolling Back) TeleportTo error: An unknown error occurred. If this happens frequently, contact Epic support.
Steps to Reproduce
Try to produce this code on a OnPlayerRemovedEvent function
if(Character:=MaybeCharacter?, Character.IsActive[], Agent:=Character.GetAgent[], Player := player[Agent], Player.IsActive[]):
if(Character.TeleportTo[Destination,Transform.Rotation]):
Expected Result
Character.IsActive or Player.IsActive fails, to the teleport never happens
Observed Result
Fatal error created. The sesion could crash
Platform(s)
All platforms
Island Code
Not yet