Difference between revisions of "LlGetPos"

From Second Life Wiki
Jump to navigation Jump to search
m (Ouch I meant to link with Viewer coordinate frames#Region only once not twice)
(llGetRegionName doesn't seem appropriate here...)
Line 27: Line 27:
{{LSL DefineRow||[[llGetLocalPos]]|Gets the prim [[Viewer coordinate frames#Local|local]] position}}
{{LSL DefineRow||[[llGetLocalPos]]|Gets the prim [[Viewer coordinate frames#Local|local]] position}}
{{LSL DefineRow||[[llGetPrimitiveParams]]|Gets prim properties}}
{{LSL DefineRow||[[llGetPrimitiveParams]]|Gets prim properties}}
{{LSL DefineRow||[[llGetRegionName]]|Gets the region name of the prim position}}
{{LSL DefineRow||[[llGetRootPosition]]|Gets the root prims position}}
{{LSL DefineRow||[[llGetRootPosition]]|Gets the root prims position}}
{{LSL DefineRow||[[llSetPos]]|Sets the prim position}}
{{LSL DefineRow||[[llSetPos]]|Sets the prim position}}

Revision as of 20:45, 16 April 2009

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

•  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

Deep Notes

Search JIRA for related Issues

Signature

function vector llGetPos();