diff options
author | onefang | 2019-07-21 21:25:11 +1000 |
---|---|---|
committer | onefang | 2019-07-21 21:25:11 +1000 |
commit | 5b752dd4b7fd2600157ec90da5051623afe1dc4d (patch) | |
tree | 45e21b1e087d3b127c00778170b0178fb2a75f08 /OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |
parent | Randomise the spawn points by default. (diff) | |
download | opensim-SC_OLD-5b752dd4b7fd2600157ec90da5051623afe1dc4d.zip opensim-SC_OLD-5b752dd4b7fd2600157ec90da5051623afe1dc4d.tar.gz opensim-SC_OLD-5b752dd4b7fd2600157ec90da5051623afe1dc4d.tar.bz2 opensim-SC_OLD-5b752dd4b7fd2600157ec90da5051623afe1dc4d.tar.xz |
TPs from scripts avoid all that silly raycasting nonsense, just go where we ask.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 8141c17..84e4546 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -4689,7 +4689,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
4689 | { | 4689 | { |
4690 | World.RequestTeleportLocation( | 4690 | World.RequestTeleportLocation( |
4691 | presence.ControllingClient, regionInfo.RegionHandle, new Vector3(128, 128, 23), Vector3.Zero, | 4691 | presence.ControllingClient, regionInfo.RegionHandle, new Vector3(128, 128, 23), Vector3.Zero, |
4692 | (uint)(Constants.TeleportFlags.SetLastToTarget | Constants.TeleportFlags.ViaHome)); | 4692 | (uint)(Constants.TeleportFlags.SetLastToTarget | Constants.TeleportFlags.ViaHome | Constants.TeleportFlags.ViaScript)); |
4693 | } | 4693 | } |
4694 | } | 4694 | } |
4695 | } | 4695 | } |
@@ -4768,7 +4768,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
4768 | 4768 | ||
4769 | if ((m_item.PermsMask & ScriptBaseClass.PERMISSION_TELEPORT) != 0) | 4769 | if ((m_item.PermsMask & ScriptBaseClass.PERMISSION_TELEPORT) != 0) |
4770 | { | 4770 | { |
4771 | World.RequestTeleportLocation(presence.ControllingClient, regionHandle, targetPos, targetLookAt, (uint)TeleportFlags.ViaLocation); | 4771 | World.RequestTeleportLocation(presence.ControllingClient, regionHandle, targetPos, targetLookAt, (uint)(Constants.TeleportFlags.ViaLocation | Constants.TeleportFlags.ViaScript)); |
4772 | } | 4772 | } |
4773 | } | 4773 | } |
4774 | } | 4774 | } |
@@ -4782,7 +4782,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
4782 | // Use it as a sim name | 4782 | // Use it as a sim name |
4783 | if (assetID == UUID.Zero) | 4783 | if (assetID == UUID.Zero) |
4784 | { | 4784 | { |
4785 | World.RequestTeleportLocation(sp.ControllingClient, destination, targetPos, targetLookAt, (uint)TeleportFlags.ViaLocation); | 4785 | World.RequestTeleportLocation(sp.ControllingClient, destination, targetPos, targetLookAt, (uint)(Constants.TeleportFlags.ViaLocation | Constants.TeleportFlags.ViaScript)); |
4786 | return; | 4786 | return; |
4787 | } | 4787 | } |
4788 | 4788 | ||
@@ -4795,7 +4795,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
4795 | 4795 | ||
4796 | AssetLandmark lm = new AssetLandmark(lma); | 4796 | AssetLandmark lm = new AssetLandmark(lma); |
4797 | 4797 | ||
4798 | World.RequestTeleportLocation(sp.ControllingClient, lm.RegionHandle, targetPos, targetLookAt, (uint)TeleportFlags.ViaLocation); | 4798 | World.RequestTeleportLocation(sp.ControllingClient, lm.RegionHandle, targetPos, targetLookAt, (uint)(Constants.TeleportFlags.ViaLocation | Constants.TeleportFlags.ViaScript)); |
4799 | } | 4799 | } |
4800 | 4800 | ||
4801 | public void llTextBox(string agent, string message, int chatChannel) | 4801 | public void llTextBox(string agent, string message, int chatChannel) |