llGetPos

From Second Life Wiki
Revision as of 21:22, 15 April 2009 by Ppaatt Lynagh (talk | contribs) (Ouch I meant to link with Viewer coordinate frames#Region only once not twice)
Jump to navigation Jump to search

Summary

Function: vector llGetPos( );
0.0 Forced Delay
10.0 Energy

Returns a vector that is the prim's region position

Examples

<lsl> default {

   touch_start(integer total_number)
   {
       // When touched, check the position of
       // the object, save it to "position",
       // then convert it into a string and
       // say it.
       vector position = llGetPos();
       llSay(0, (string)position);
   }

}

</lsl>

See Also

Functions

•  llGetLocalPos Gets the prim local position
•  llGetPrimitiveParams Gets prim properties
•  llGetRegionName Gets the region name of the prim position
•  llGetRootPosition Gets the root prims position
•  llSetPos Sets the prim position
•  llSetPrimitiveParams Sets prim properties
•  llSetLinkPrimitiveParams Sets linked prim properties

Deep Notes

Signature

function vector llGetPos();