OpenSim.Region.Framework.Scenes.Scene.TeleportClientHome C# (CSharp) Method

TeleportClientHome() public method

Teleport an avatar to their home region
public TeleportClientHome ( UUID agentId, IClientAPI client ) : void
agentId UUID The avatar's Unique ID
client IClientAPI The IClientAPI for the client
return void
        public virtual void TeleportClientHome(UUID agentId, IClientAPI client)
        {
            if (m_teleportModule != null)
                m_teleportModule.TeleportHome(agentId, client);
            else
            {
                m_log.DebugFormat("[SCENE]: Unable to teleport user home: no AgentTransferModule is active");
                client.SendTeleportFailed("Unable to perform teleports on this simulator.");
            }
        }
Scene