From 7c1d075a5a72dd9411e40676054b648b26f116a6 Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Fri, 27 Jan 2012 23:17:13 +0000
Subject: Implement osIsNpc(key npc):integer. This return TRUE if the given
key belongs to an NPC in the region. FALSE if not or if the NPC module isn't
present.
---
OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs | 7 +++++++
1 file changed, 7 insertions(+)
(limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Interface')
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs
index ee48ec4..dbc1dfc 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs
@@ -173,6 +173,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
LSL_List osGetLinkPrimitiveParams(int linknumber, LSL_List rules);
+ ///
+ /// Check if the given key is an npc
+ ///
+ ///
+ /// TRUE if the key belongs to an npc in the scene. FALSE otherwise.
+ LSL_Integer osIsNpc(LSL_Key npc);
+
key osNpcCreate(string user, string name, vector position, string notecard);
key osNpcCreate(string user, string name, vector position, string notecard, int options);
LSL_Key osNpcSaveAppearance(key npc, string notecard);
--
cgit v1.1