aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Interface
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-01-27 23:17:13 +0000
committerJustin Clark-Casey (justincc)2012-01-27 23:17:13 +0000
commit7c1d075a5a72dd9411e40676054b648b26f116a6 (patch)
tree438ec6b7db3ddd594c80dcbc6ce0e5087486f7ae /OpenSim/Region/ScriptEngine/Shared/Api/Interface
parentMerge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff)
downloadopensim-SC_OLD-7c1d075a5a72dd9411e40676054b648b26f116a6.zip
opensim-SC_OLD-7c1d075a5a72dd9411e40676054b648b26f116a6.tar.gz
opensim-SC_OLD-7c1d075a5a72dd9411e40676054b648b26f116a6.tar.bz2
opensim-SC_OLD-7c1d075a5a72dd9411e40676054b648b26f116a6.tar.xz
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.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Interface')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs7
1 files changed, 7 insertions, 0 deletions
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
173 173
174 LSL_List osGetLinkPrimitiveParams(int linknumber, LSL_List rules); 174 LSL_List osGetLinkPrimitiveParams(int linknumber, LSL_List rules);
175 175
176 /// <summary>
177 /// Check if the given key is an npc
178 /// </summary>
179 /// <param name="npc"></param>
180 /// <returns>TRUE if the key belongs to an npc in the scene. FALSE otherwise.</returns>
181 LSL_Integer osIsNpc(LSL_Key npc);
182
176 key osNpcCreate(string user, string name, vector position, string notecard); 183 key osNpcCreate(string user, string name, vector position, string notecard);
177 key osNpcCreate(string user, string name, vector position, string notecard, int options); 184 key osNpcCreate(string user, string name, vector position, string notecard, int options);
178 LSL_Key osNpcSaveAppearance(key npc, string notecard); 185 LSL_Key osNpcSaveAppearance(key npc, string notecard);