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

AgentCrossing() public method

Triggered when an agent crosses into this sim. Also happens on initial login.
public AgentCrossing ( UUID agentID, Vector3 position, bool isFlying ) : void
agentID UUID
position Vector3
isFlying bool
return void
        public virtual void AgentCrossing(UUID agentID, Vector3 position, bool isFlying)
        {
            ScenePresence presence = GetScenePresence(agentID);
            if (presence != null)
            {
                try
                {
                    presence.MakeRootAgent(position, isFlying);
                }
                catch (Exception e)
                {
                    m_log.ErrorFormat("[SCENE]: Unable to do agent crossing, exception {0}", e);
                }
            }
            else
            {
                m_log.ErrorFormat(
                    "[SCENE]: Could not find presence for agent {0} crossing into scene {1}",
                    agentID, RegionInfo.RegionName);
            }
        }
Scene