diff options
author | Justin Clark-Casey (justincc) | 2012-01-27 23:05:48 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-01-27 23:05:48 +0000 |
commit | 9939f94f08b33e3dd9eeea65b730f0ddc80275a5 (patch) | |
tree | aa1fc79d0a8a64f9b3d30dc383b049c5b5bf353c /OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs | |
parent | Add basic TestAddScript() regression test (diff) | |
download | opensim-SC-9939f94f08b33e3dd9eeea65b730f0ddc80275a5.zip opensim-SC-9939f94f08b33e3dd9eeea65b730f0ddc80275a5.tar.gz opensim-SC-9939f94f08b33e3dd9eeea65b730f0ddc80275a5.tar.bz2 opensim-SC-9939f94f08b33e3dd9eeea65b730f0ddc80275a5.tar.xz |
Implement osNpcGetOwner(key npc):key. This returns the owner for an 'owned' NPC, the npc's own key for an 'unowned' NPC and NULL_KEY is the input key was not an npc.
llGetOwnerKey() could also be extended but this does not allow one to distinguish between an unowned NPC and some other result (e.g. 'no such object' if NULL_KEY is the return.
Also, any future extensions to LSL functions by Linden Lab are unpredictable and OpenSim-specific extensions could clash.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs | 5 |
1 files changed, 5 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 02efecf..38a814d 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs | |||
@@ -513,6 +513,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase | |||
513 | m_OSSL_Functions.osNpcLoadAppearance(npc, notecard); | 513 | m_OSSL_Functions.osNpcLoadAppearance(npc, notecard); |
514 | } | 514 | } |
515 | 515 | ||
516 | public LSL_Key osNpcGetOwner(LSL_Key npc) | ||
517 | { | ||
518 | return m_OSSL_Functions.osNpcGetOwner(npc); | ||
519 | } | ||
520 | |||
516 | public vector osNpcGetPos(LSL_Key npc) | 521 | public vector osNpcGetPos(LSL_Key npc) |
517 | { | 522 | { |
518 | return m_OSSL_Functions.osNpcGetPos(npc); | 523 | return m_OSSL_Functions.osNpcGetPos(npc); |