aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Implementation
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-10-17 01:56:25 +0100
committerJustin Clark-Casey (justincc)2011-10-17 01:56:25 +0100
commitde161585c0960a93911f446f0179441ba5470245 (patch)
treedc32dcc61dabd6f45bc7220bf6f3d89b74268532 /OpenSim/Region/ScriptEngine/Shared/Api/Implementation
parentMerge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff)
downloadopensim-SC_OLD-de161585c0960a93911f446f0179441ba5470245.zip
opensim-SC_OLD-de161585c0960a93911f446f0179441ba5470245.tar.gz
opensim-SC_OLD-de161585c0960a93911f446f0179441ba5470245.tar.bz2
opensim-SC_OLD-de161585c0960a93911f446f0179441ba5470245.tar.xz
Implement osNpcStand(<npc-id>)
Allows you to stand an NPC that has sat.
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
index 7cf6642..49c8722 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
@@ -2362,6 +2362,17 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2362 } 2362 }
2363 } 2363 }
2364 2364
2365 public void osNpcStand(LSL_Key npc)
2366 {
2367 CheckThreatLevel(ThreatLevel.High, "osNpcStand");
2368
2369 INPCModule module = World.RequestModuleInterface<INPCModule>();
2370 if (module != null)
2371 {
2372 module.Stand(new UUID(npc.m_string), World);
2373 }
2374 }
2375
2365 public void osNpcRemove(LSL_Key npc) 2376 public void osNpcRemove(LSL_Key npc)
2366 { 2377 {
2367 CheckThreatLevel(ThreatLevel.High, "osNpcRemove"); 2378 CheckThreatLevel(ThreatLevel.High, "osNpcRemove");