This NPC teleports player by request to a instanced zone.
I save in DB instanceId.
If player restarted while instance not expired all ok. But if player enters to game then instance zone expired he must be teleported to this NPC.
This is done by code:
Code: Select all
player.setInstanceId(0); if(player.isDead()) player.doRevive(); player.teleToLocation(116195, 16719, 10077); player.broadcastStatusUpdate(); player.broadcastUserInfo();
but then it teleported he has a client crash with message:
Code: Select all
General protection fault! History: UMasterLevel::GetModel <- AActor::SetZone <- ULevel::SpawnActor <- (enchant_radiance) <- UMasterLevel::SpawnActor <- Init <- APawn::UpdateAbnormalState <- TickAllActors <- ULevel::Tick <- (NetMode=0) <- UMasterLevel::Tick <- TickLevel <- UGameEngine::Tick <- UpdateWorld <- MainLoop
But if player teleported from instance in usual way, no crash happens.
Any help? How to avoid crash?