OsTeleportObject
From OpenSimulator
(Difference between revisions)
Line 3: | Line 3: | ||
||permissions=${XEngine|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER | ||permissions=${XEngine|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER | ||
|delay=0 | |delay=0 | ||
− | |function_syntax=integer osTeleportObject(key | + | |function_syntax=integer osTeleportObject(key objectID, vector targetPos, rotation rot, integer flags) |
|csharp_syntax= | |csharp_syntax= | ||
|ossl_example=<source lang="lsl"> | |ossl_example=<source lang="lsl"> | ||
Line 26: | Line 26: | ||
===== Arguments: ===== | ===== Arguments: ===== | ||
− | * | + | * objectID the id of the linkset to teleport |
* targetPos target position in region local coords | * targetPos target position in region local coords | ||
Revision as of 12:22, 14 November 2018
integer osTeleportObject(key objectID, vector targetPos, rotation rot, integer flags)
| |
...
Arguments:
Flags:
| |
Threat Level | Severe |
Permissions | ${XEngine|osslParcelO}ESTATE_MANAGER,ESTATE_OWNER |
Extra Delay | 0 seconds |
Example(s) | |
// Example of osTeleportObject default { state_entry() { llSay(0, "Script running"); } touch_start(integer num) { // target position in region local coords vector target =<873.911926, 879.844910, 21.332354>; rotation rot =<0,0,0.707,.707>; osObjectTeleport(llGetKey(),target,rot,1); } } | |
Notes | |
This function was added in 0.9.0-post-fixes |