Difference between revisions of "LlGetPos"

From Second Life Wiki
Jump to navigation Jump to search
m (formatted example, added also functions)
Line 9: Line 9:
|caveats
|caveats
|constants
|constants
|examples=<pre>
|examples=<lsl>
default
default
{
{
Line 22: Line 22:
     }
     }
}
}
</pre>
</lsl>
|helpers
|helpers
|also_functions={{LSL DefineRow||[[llGetLocalPos]]|Gets the prim [[Viewer coordinate frames#Local|local]] position}}
|also_functions=
{{LSL DefineRow||[[llGetRootPosition]]|Gets the root prims position}}
{{LSL DefineRow||[[llGetLocalPos]]|Gets the prim [[Viewer coordinate frames#Local|local]] position}}
{{LSL DefineRow||[[llGetPimitiveParams]]|Gets prim properties}}
{{LSL DefineRow||[[llSetPos]]|Sets the prim position}}
{{LSL DefineRow||[[llSetPos]]|Sets the prim position}}
{{LSL DefineRow||[[llSetPrimitiveParams]]|Sets prim properties}}
{{LSL DefineRow||[[llSetLinkPrimitiveParams]]|Sets linked prim properties}}
|also_tests
|also_tests
|also_events
|also_events

Revision as of 21:41, 19 February 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
•  llGetPimitiveParams 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();