llSetPos

From Second Life Wiki
Revision as of 19:48, 19 March 2007 by Ralph Doctorow (talk | contribs)
Jump to navigation Jump to search

Summary

Function: llSetPos( vector pos );
0.2 Forced Delay
10.0 Energy

Moves the object or primitive towards the specified location without using physics. If the script is attached to a linked prim that is not root, the function moves the prim relative to the root.

For an unlinked prim, or the root prim, this movement is in region coordinates, however, for a linked prim (not the root) the coordinates are in the frame of the root prim (local). You can get a linked prim's position relative to the root prim with llGetLocalPos. There is no llSetLocalPos because this function does that if it is in a linked prim (not the root).

• vector pos

Movement is capped to 10m per call.

Caveats

  • This function causes the script to sleep for 0.2 seconds.

Examples

See Also

Functions

•  llGetPos llGetLocalPos

Deep Notes

Signature

function void llSetPos( vector pos );