Difference between revisions of "AgentRequestSit"

From Second Life Wiki
Jump to navigation Jump to search
m
 
 
Line 1: Line 1:
{{ProtocolNav}}
{{ProtocolNav}}
==Message Layout==
==Message Layout==
Line 19: Line 18:
</pre>
</pre>
==Usage and Notes==
==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 [http://wiki.secondlife.com/wiki/User:Andrew_Linden/Office_Hours/2007_11_06 Andrew Linden's office hours on 2007/11/06].
[[Category:Messages]]
[[Category:Messages]]

Latest revision as of 19:22, 15 November 2007

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.