aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Implementation
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-08-10 00:26:38 +0100
committerJustin Clark-Casey (justincc)2011-08-10 00:26:38 +0100
commit195c1dc9b8b8511980d9a607a242b24a5a91da17 (patch)
treef1e844250bf92895e39a41f8b6fac7797a09317f /OpenSim/Region/ScriptEngine/Shared/Api/Implementation
parentWhen an NPC appearance is loaded, rez the attachments too (diff)
downloadopensim-SC-195c1dc9b8b8511980d9a607a242b24a5a91da17.zip
opensim-SC-195c1dc9b8b8511980d9a607a242b24a5a91da17.tar.gz
opensim-SC-195c1dc9b8b8511980d9a607a242b24a5a91da17.tar.bz2
opensim-SC-195c1dc9b8b8511980d9a607a242b24a5a91da17.tar.xz
implement osNpcStopMoveTo() to cancel any current move target
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs9
1 files changed, 9 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 a05c623..9c32029 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
@@ -2213,6 +2213,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2213 } 2213 }
2214 } 2214 }
2215 2215
2216 public void osNpcStopMoveTo(LSL_Key npc)
2217 {
2218 CheckThreatLevel(ThreatLevel.VeryLow, "osNpcStopMoveTo");
2219
2220 INPCModule module = World.RequestModuleInterface<INPCModule>();
2221 if (module != null)
2222 module.StopMoveToTarget(new UUID(npc.m_string), World);
2223 }
2224
2216 public void osNpcSay(LSL_Key npc, string message) 2225 public void osNpcSay(LSL_Key npc, string message)
2217 { 2226 {
2218 CheckThreatLevel(ThreatLevel.High, "osNpcSay"); 2227 CheckThreatLevel(ThreatLevel.High, "osNpcSay");