Jump to content

LlGetPos

From OSgrid Wiki
Revision as of 23:02, 31 December 2017 by Osgridadmin (talk | contribs) (Created page with "==Function: vector llGetPos( );== Returns a vector that is the prim's region position<br><br> '''Caveats'''<br><br> '''Examples'''<br><br> {|border="1" cellpadding="5" cell...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Function: vector llGetPos( );

Returns a vector that is the prim's region position

Caveats

Examples

<source lang="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);
   }

} </source>


See Also
Functions
• llGetLocalPos – Gets the prim local position
• llGetPrimitiveParams – Gets prim properties
• llGetRootPosition – Gets the root prims position
• llSetPos – Sets the prim position
• llSetPrimitiveParams – Sets prim properties
• llSetLinkPrimitiveParams – Sets linked prim properties