OpenSim.Region.ScriptEngine.Shared.Api.OSSL_Api.osNpcGetOwner C# (CSharp) Метод

osNpcGetOwner() публичный Метод

public osNpcGetOwner ( OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLString npc ) : OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLString
npc OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLString
Результат OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLString
        public LSL_Key osNpcGetOwner(LSL_Key npc)
        {
            CheckThreatLevel(ThreatLevel.None, "osNpcGetOwner");
            m_host.AddScriptLPS(1);

            INPCModule npcModule = World.RequestModuleInterface<INPCModule>();
            if (npcModule != null)
            {
                UUID npcId;
                if (UUID.TryParse(npc.m_string, out npcId))
                {
                    UUID owner = npcModule.GetOwner(npcId);
                    if (owner != UUID.Zero)
                        return new LSL_Key(owner.ToString());
                    else
                        return npc;
                }
            }

            return new LSL_Key(UUID.Zero.ToString());
        }
OSSL_Api