AgentRequestSit

From Second Life Wiki
Jump to navigation Jump to search

Message Layout

{
	AgentRequestSit		High  NotTrusted Zerocoded
	{
		AgentData			Single
		{	AgentID			LLUUID		}
		{	SessionID		LLUUID		}
	}
	{
		TargetObject	Single
		{	TargetID	LLUUID	}
		{	Offset		LLVector3	}
	}
}

Usage and Notes

This packet is sent to the server when the user tries to sit on a prim.

  • TargetID - the ID of the prim
  • Offset - a rough position in local coordinates for the edge to sit on

Note that the offset is quite rough, and is sometimes even inside the object. The server should respond to this with an AvatarSitResponse packet if it decides the sit request is valid.

The server side of sitting was discussed in some detail during Andrew Linden's office hours on 2007/11/06.