From 4d0261ed2225dff3f107ec52484770a6f7435790 Mon Sep 17 00:00:00 2001 From: MW Date: Tue, 29 May 2007 17:57:03 +0000 Subject: --- OpenSim/OpenSim.RegionServer/ClientView.API.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'OpenSim/OpenSim.RegionServer') diff --git a/OpenSim/OpenSim.RegionServer/ClientView.API.cs b/OpenSim/OpenSim.RegionServer/ClientView.API.cs index 7b1e537..4177dff 100644 --- a/OpenSim/OpenSim.RegionServer/ClientView.API.cs +++ b/OpenSim/OpenSim.RegionServer/ClientView.API.cs @@ -57,6 +57,20 @@ namespace OpenSim } #region World/Avatar to Client + + public void MoveAgentIntoRegion(RegionInfo regInfo) + { + AgentMovementCompletePacket mov = new AgentMovementCompletePacket(); + mov.AgentData.SessionID = this.SessionID; + mov.AgentData.AgentID = this.AgentID; + mov.Data.RegionHandle = regInfo.RegionHandle; + // TODO - dynamicalise this stuff + mov.Data.Timestamp = 1172750370; + mov.Data.Position = this.startpos; + mov.Data.LookAt = new LLVector3(0.99f, 0.042f, 0); + + OutPacket(mov); + } public void SendChatMessage(byte[] message, byte type, LLVector3 fromPos, string fromName, LLUUID fromAgentID) { System.Text.Encoding enc = System.Text.Encoding.ASCII; -- cgit v1.1