llGetAgentSize
Revision as of 15:13, 12 October 2007 by Xaviar Czervik (talk | contribs) (Forgot to make it *show* the example...)
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: vector llGetAgentSize( key id );218 | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
Returns a vector that is the size of the requested avatar by id.
• key | id |
The agent id must be in the same region as the requesting object, ZERO_VECTOR is returned if not.
Caveats
Examples
//A simple script that makes a box hover above the owner's head. default { on_rez(integer i) { llSensor("", "", AGENT, 100000, 10000); } sensor(integer num) { integer i = 0; while (i < num) { if (llDetectedKey(i) == llGetOwner()) { vector where = llDetectedPos(i); vector agent = llGetAgentSize(llGetOwner())/2; size += agent.z + <0,0,.5>; llSetPos(where); } i++; } } }
Notes
This is a good way to test if an av is in the same region.
See Also
Functions
• | llGetBoundingBox | |||
• | llGetAgentInfo | |||
• | llRequestAgentData |