aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
authorUbitUmarov2017-04-04 14:34:25 +0100
committerUbitUmarov2017-04-04 14:34:25 +0100
commitca250e0b0b564efaaeb5c0b80760126cfd710c5e (patch)
tree96f82f09fd71d63b380fe732e4e099f4bd4fd5de /OpenSim/Region/ScriptEngine
parentmantis 8130: improve keyframes motion (diff)
downloadopensim-SC_OLD-ca250e0b0b564efaaeb5c0b80760126cfd710c5e.zip
opensim-SC_OLD-ca250e0b0b564efaaeb5c0b80760126cfd710c5e.tar.gz
opensim-SC_OLD-ca250e0b0b564efaaeb5c0b80760126cfd710c5e.tar.bz2
opensim-SC_OLD-ca250e0b0b564efaaeb5c0b80760126cfd710c5e.tar.xz
mantis 8740: rename osObjectTeleport as osTeleportObject, replaced the stop parameter by flags, add flags OSTPOBJ_STOPATTARRGET and OSTPOBJ_SETROT
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs8
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs2
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs7
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs4
4 files changed, 14 insertions, 7 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
index ddf5078..b50ae28 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
@@ -4632,17 +4632,17 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4632 /// <param name="objectUUID">the id of the linkset to teleport</param> 4632 /// <param name="objectUUID">the id of the linkset to teleport</param>
4633 /// <param name="targetPos">target position</param> 4633 /// <param name="targetPos">target position</param>
4634 /// <param name="rotation"> a rotation to apply</param> 4634 /// <param name="rotation"> a rotation to apply</param>
4635 /// <param name="stop">if TRUE (!=0) stop at destination</param> 4635 /// <param name="flags">several flags/param>
4636 /// <remarks> 4636 /// <remarks>
4637 /// only does teleport local to region 4637 /// only does teleport local to region
4638 /// object owner must have rights to run scripts on target location 4638 /// if object has scripts, owner must have rights to run scripts on target location
4639 /// object owner must have rights to enter ojects on target location 4639 /// object owner must have rights to enter ojects on target location
4640 /// target location parcel must have enought free prims capacity for the linkset prims 4640 /// target location parcel must have enought free prims capacity for the linkset prims
4641 /// all avatars siting on the object must have access to target location 4641 /// all avatars siting on the object must have access to target location
4642 /// has a cool down time. retries before expire reset it 4642 /// has a cool down time. retries before expire reset it
4643 /// fail conditions are silent ignored 4643 /// fail conditions are silent ignored
4644 /// </remarks> 4644 /// </remarks>
4645 public void osObjectTeleport(LSL_Key objectUUID, LSL_Vector targetPos, LSL_Rotation rotation, LSL_Integer stop) 4645 public void osTeleportObject(LSL_Key objectUUID, LSL_Vector targetPos, LSL_Rotation rotation, LSL_Integer flags)
4646 { 4646 {
4647 CheckThreatLevel(ThreatLevel.Severe, "osTeleportAgent"); 4647 CheckThreatLevel(ThreatLevel.Severe, "osTeleportAgent");
4648 m_host.AddScriptLPS(1); 4648 m_host.AddScriptLPS(1);
@@ -4660,7 +4660,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4660 4660
4661 UUID myid = m_host.ParentGroup.UUID; 4661 UUID myid = m_host.ParentGroup.UUID;
4662 4662
4663 sog.ObjectTeleport(myid, targetPos, rotation, stop != 0); 4663 sog.TeleportObject(myid, targetPos, rotation, flags);
4664 // a delay here may break vehicles 4664 // a delay here may break vehicles
4665 } 4665 }
4666 } 4666 }
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs
index 4722fed..879fe51 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs
@@ -496,6 +496,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
496 void osSetInertiaAsSphere(LSL_Float mass, LSL_Float radius, vector centerOfMass); 496 void osSetInertiaAsSphere(LSL_Float mass, LSL_Float radius, vector centerOfMass);
497 void osSetInertiaAsCylinder(LSL_Float mass, LSL_Float radius, LSL_Float lenght, vector centerOfMass,rotation lslrot); 497 void osSetInertiaAsCylinder(LSL_Float mass, LSL_Float radius, LSL_Float lenght, vector centerOfMass,rotation lslrot);
498 498
499 void osObjectTeleport(LSL_Key objectUUID, vector targetPos, rotation targetrotation, LSL_Integer stop); 499 void osTeleportObject(LSL_Key objectUUID, vector targetPos, rotation targetrotation, LSL_Integer flags);
500 } 500 }
501} 501}
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs
index 3a90c77..59493a3 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs
@@ -853,5 +853,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
853 /// process message parameter as regex 853 /// process message parameter as regex
854 /// </summary> 854 /// </summary>
855 public const int OS_LISTEN_REGEX_MESSAGE = 0x2; 855 public const int OS_LISTEN_REGEX_MESSAGE = 0x2;
856
857 // for osTeleportObject
858 public const int OSTPOBJ_NONE = 0x0;
859 public const int OSTPOBJ_STOPATTARRGET = 0x1; // stops at destination
860 public const int OSTPOBJ_STOPONFAIL = 0x2; // stops at jump point if tp fails
861 public const int OSTPOBJ_SETROT = 0x4; // the rotation is the final rotation, otherwise is a added rotation
862
856 } 863 }
857} 864}
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs
index 37e7a17..3c8e02d 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs
@@ -1140,9 +1140,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
1140 m_OSSL_Functions.osClearInertia(); 1140 m_OSSL_Functions.osClearInertia();
1141 } 1141 }
1142 1142
1143 public void osObjectTeleport(LSL_Key objectUUID, vector targetPos, rotation targetrotation, LSL_Integer stop) 1143 public void osTeleportObject(LSL_Key objectUUID, vector targetPos, rotation targetrotation, LSL_Integer flags)
1144 { 1144 {
1145 m_OSSL_Functions.osObjectTeleport(objectUUID, targetPos, targetrotation, stop); 1145 m_OSSL_Functions.osTeleportObject(objectUUID, targetPos, targetrotation, flags);
1146 } 1146 }
1147 } 1147 }
1148} 1148}