Difference between revisions of "LlGetPos"

From Second Life Wiki
Jump to navigation Jump to search
m
m
Line 37: Line 37:
|cat1=Movement
|cat1=Movement
|cat2=Prim
|cat2=Prim
|cat3=Object
|cat3
|cat4
|cat4
}}
}}

Revision as of 07:32, 23 October 2008

Summary

Function: vector llGetPos( );

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

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

Deep Notes

Search JIRA for related Issues

Signature

function vector llGetPos();