Difference between revisions of "LlGetPos"

From Second Life Wiki
Jump to navigation Jump to search
m
Line 25: Line 25:
|helpers
|helpers
|also_functions={{LSL DefineRow||[[llGetLocalPos]]|Gets the prim [[Viewer coordinate frames#Local|local]] position}}
|also_functions={{LSL DefineRow||[[llGetLocalPos]]|Gets the prim [[Viewer coordinate frames#Local|local]] position}}
{{LSL DefineRow||[[llGetLocalPos]]|Sets the prim position}}
{{LSL DefineRow||[[llSetPos]]|Sets the prim position}}
|also_tests
|also_tests
|also_events
|also_events

Revision as of 16:18, 16 April 2007

Summary

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

Returns a vector that is the prim's region position

Examples

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);
    }
}

See Also

Functions

•  llGetLocalPos Gets the prim local position
•  llSetPos Sets the prim position

Deep Notes

Signature

function vector llGetPos();