LlGetRootPosition
Looking for the current API? Open the llGetRootPosition reference →
Return value notes
Examples
default{
touch_start( integer vIntTouched ){
string vStrMessage = "The prim with this script is ";
if (llGetPos() != llGetRootPosition()){
vStrMessage += "NOT ";
}
llSay( PUBLIC_CHANNEL, vStrMessage + "centered on the root prim." );
}
}Helper functions
//-- there is no llSetLocalPos, this adds the functionality
//-- to match llGetLocalPos() in a child prim
fSetLocalPos( vector vPosOffset ){
llSetPos( llGetRootPosition() + vPosOffset );
}
//-- this will move a root prim by the offset, or set the
//-- position of a child prim relative to the root.See also: functions
Original wiki source
Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.