Difference between revisions of "ViewerEffect"

From Second Life Wiki
Jump to navigation Jump to search
m
Line 2: Line 2:
==Message Layout==
==Message Layout==
<pre width=80>
<pre width=80>
ViewerEffect Medium 17 NotTrusted Zerocoded
ViewerEffect Medium 17 NotTrusted Zerocoded
{
{
AgentData Single
AgentData Single
{ AgentID LLUUID }
{ AgentID LLUUID }
{ SessionID LLUUID }
{ SessionID LLUUID }
}
}
{
{
Effect Variable
Effect Variable
{ ID LLUUID } // unique UUID of the effect
{ ID LLUUID } // unique UUID of the effect
{ AgentID LLUUID } // yes, pack AgentID again (note this block is variable)
{ AgentID LLUUID } // yes, pack AgentID again (note this block is variable)
{ Type U8 } // Type of the effect
{ Type U8 } // Type of the effect
{ Duration F32 } // F32 time (seconds)
{ Duration F32 } // F32 time (seconds)
{ Color Fixed 4 } // Color4U
{ Color Fixed 4 } // Color4U
{ TypeData Variable 1 } // Type specific data
{ TypeData Variable 1 } // Type specific data
}
}
</pre>
</pre>
==Usage and Notes==
==Usage and Notes==
Viewer side effect that's sent from one viewer, and broadcast to other agents nearby (selection beams, PointAt, LookAt).
Viewer side effect that's sent from one viewer, and broadcast to other agents nearby (selection beams, PointAt, LookAt).

Revision as of 12:40, 17 July 2008

Message Layout

ViewerEffect Medium 17 NotTrusted Zerocoded
{
	AgentData		Single
	{	AgentID		LLUUID	}
	{	SessionID	LLUUID	}
}
{
	Effect Variable
	{	ID			LLUUID	} // unique UUID of the effect
	{	AgentID		LLUUID	} // yes, pack AgentID again (note this block is variable)
	{	Type		U8	} // Type of the effect
	{	Duration	F32	} // F32 time (seconds)
	{	Color		Fixed		4	} // Color4U
	{	TypeData	Variable	1	} // Type specific data
}

Usage and Notes

Viewer side effect that's sent from one viewer, and broadcast to other agents nearby (selection beams, PointAt, LookAt).

viewer-->sim (single effect created by viewer)

sim-->viewer (multiple effects that can be seen by viewer)

The AgentData block is used for authentication for viewer-->sim messages