diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2024-09-12 12:27:08 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2024-09-12 12:27:08 -0400 |
commit | a68bb4eb27573a9313169799a188dda3ae765666 (patch) | |
tree | 65a867dce9a205141e2ad037d8dfb4014a4e2d74 /indra/newview/scripts/lua/require/LLAgent.lua | |
parent | 499c62637f487b673bac86be566588a8ccde388d (diff) |
Support "LLTeleportHandler" "teleport" regionname="home".
Diffstat (limited to 'indra/newview/scripts/lua/require/LLAgent.lua')
-rw-r--r-- | indra/newview/scripts/lua/require/LLAgent.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/scripts/lua/require/LLAgent.lua b/indra/newview/scripts/lua/require/LLAgent.lua index 9eebede59f..5cee998fcd 100644 --- a/indra/newview/scripts/lua/require/LLAgent.lua +++ b/indra/newview/scripts/lua/require/LLAgent.lua @@ -72,11 +72,12 @@ function LLAgent.getAnimationInfo(item_id) end -- Teleport to specified "regionname" at specified region-relative "x", "y", "z". +-- If "regionname" is "home", ignore "x", "y", "z" and teleport home. -- If "regionname" omitted, teleport to GLOBAL coordinates "x", "y", "z". function LLAgent.teleport(...) local args = mapargs('regionname,x,y,z', ...) args.op = 'teleport' - return leap.request('LLTeleportHandler', args) + return leap.request('LLTeleportHandler', args).message end return LLAgent |