mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
add basic SendFindAgent() to lludp. Future use may require a list of pairs (X,Y). For now one pair is good enough.
This commit is contained in:
@@ -2705,8 +2705,24 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
OutPacket(offp, ThrottleOutPacketType.Task);
|
||||
}
|
||||
|
||||
public void SendSitResponse(UUID TargetID, Vector3 OffsetPos, Quaternion SitOrientation, bool autopilot,
|
||||
Vector3 CameraAtOffset, Vector3 CameraEyeOffset, bool ForceMouseLook)
|
||||
public void SendFindAgent(UUID HunterID, UUID PreyID, double GlobalX, double GlobalY)
|
||||
{
|
||||
FindAgentPacket fap = new FindAgentPacket();
|
||||
fap.AgentBlock.Hunter = HunterID;
|
||||
fap.AgentBlock.Prey = PreyID;
|
||||
fap.AgentBlock.SpaceIP = 0;
|
||||
|
||||
fap.LocationBlock = new FindAgentPacket.LocationBlockBlock[1];
|
||||
fap.LocationBlock[0] = new FindAgentPacket.LocationBlockBlock();
|
||||
fap.LocationBlock[0].GlobalX = GlobalX;
|
||||
fap.LocationBlock[0].GlobalY = GlobalY;
|
||||
|
||||
OutPacket(fap, ThrottleOutPacketType.Task);
|
||||
}
|
||||
|
||||
public void SendSitResponse(UUID TargetID, Vector3 OffsetPos,
|
||||
Quaternion SitOrientation, bool autopilot,
|
||||
Vector3 CameraAtOffset, Vector3 CameraEyeOffset, bool ForceMouseLook)
|
||||
{
|
||||
AvatarSitResponsePacket avatarSitResponse = new AvatarSitResponsePacket();
|
||||
avatarSitResponse.SitObject.ID = TargetID;
|
||||
|
||||
Reference in New Issue
Block a user