Beispiel #1
0
 /// <summary>
 /// Sets home location to agents current position
 /// </summary>
 /// <remarks>will fire an AlertMessage (<seealso cref="E:OpenMetaverse.AgentManager.OnAlertMessage"/>) with 
 /// success or failure message</remarks>
 public void SetHome()
 {
     SetStartLocationRequestPacket s = new SetStartLocationRequestPacket();
     s.AgentData = new SetStartLocationRequestPacket.AgentDataBlock();
     s.AgentData.AgentID = Client.Self.AgentID;
     s.AgentData.SessionID = Client.Self.SessionID;
     s.StartLocationData = new SetStartLocationRequestPacket.StartLocationDataBlock();
     s.StartLocationData.LocationPos = Client.Self.SimPosition;
     s.StartLocationData.LocationID = 1;
     s.StartLocationData.SimName = Utils.StringToBytes(String.Empty);
     s.StartLocationData.LocationLookAt = Movement.Camera.AtAxis;
     Client.Network.SendPacket(s);
 }
Beispiel #2
0
 /// <summary>
 /// Sets home location
 /// </summary>		
 public void SetHome()
 {
     SetStartLocationRequestPacket s = new SetStartLocationRequestPacket();
     s.AgentData = new SetStartLocationRequestPacket.AgentDataBlock();
     s.AgentData.AgentID = Client.Self.AgentID;
     s.AgentData.SessionID = Client.Self.SessionID;
     s.StartLocationData = new SetStartLocationRequestPacket.StartLocationDataBlock();
     s.StartLocationData.LocationPos = Client.Self.SimPosition;
     s.StartLocationData.LocationID = 1;
     s.StartLocationData.SimName = Helpers.StringToField(String.Empty);
     s.StartLocationData.LocationLookAt = Client.Self.lookAt;
     Client.Network.SendPacket(s);
 }