aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs
diff options
context:
space:
mode:
authorVegaslon2014-10-09 09:46:17 -0400
committerJustin Clark-Casey (justincc)2014-10-11 00:04:25 +0100
commit79a4d1ea8d6e51ed3d001b70e7da325a89ce92c8 (patch)
tree11b0b365abdc0f037ba1aef3c115510ad7c56710 /OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs
parentminor: add --default-user option to "load oar" help long description. Do oth... (diff)
downloadopensim-SC_OLD-79a4d1ea8d6e51ed3d001b70e7da325a89ce92c8.zip
opensim-SC_OLD-79a4d1ea8d6e51ed3d001b70e7da325a89ce92c8.tar.gz
opensim-SC_OLD-79a4d1ea8d6e51ed3d001b70e7da325a89ce92c8.tar.bz2
opensim-SC_OLD-79a4d1ea8d6e51ed3d001b70e7da325a89ce92c8.tar.xz
Implements osForceSit(string avatar) & overload osForceSit(string avatar, string target)
Allows a script IN the target prim to force an avatar to sit on it using normal methods as if called by the client. Overload method of osForceSit() to allow a script NOT in the target prim to force an avatar to sit on the target prim using normal methods as if called by the client. This patch is based on previous work from http://opensimulator.org/mantis/view.php?id=4492 and also includes the suggestions from justincc including change of threat level Thank you Christos Lightling.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs
index b436c52..da88cc4 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs
@@ -919,6 +919,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
919 { 919 {
920 m_OSSL_Functions.osCauseHealing(avatar, healing); 920 m_OSSL_Functions.osCauseHealing(avatar, healing);
921 } 921 }
922
923 public void osForceSit(string avatar)
924 {
925 m_OSSL_Functions.osForceSit(avatar);
926 }
927 public void osForceSit(string avatar, string target)
928 {
929 m_OSSL_Functions.osForceSit(avatar, target);
930 }
922 931
923 public LSL_List osGetPrimitiveParams(LSL_Key prim, LSL_List rules) 932 public LSL_List osGetPrimitiveParams(LSL_Key prim, LSL_List rules)
924 { 933 {