예제 #1
0
파일: Bot_API.cs 프로젝트: kow/Aurora-Sim
        public string botCreateBot(string FirstName, string LastName, string appearanceToClone)
        {
            IBotManager manager = World.RequestModuleInterface <IBotManager>();

            if (manager != null)
            {
                return(manager.CreateAvatar(FirstName, LastName, m_host.ParentEntity.Scene, UUID.Parse(appearanceToClone)).ToString());
            }
            return("");
        }
예제 #2
0
        public LSL_String botCreateBot(string FirstName, string LastName, string appearanceToClone, LSL_Vector startPos)
        {
            if (!ScriptProtection.CheckThreatLevel(ThreatLevel.Moderate, "botCreateBot", m_host, "bot", m_itemID))
            {
                return("");
            }
            IBotManager manager = World.RequestModuleInterface <IBotManager>();

            if (manager != null)
            {
                return
                    (new LSL_String(
                         manager.CreateAvatar(FirstName, LastName, m_host.ParentEntity.Scene,
                                              UUID.Parse(appearanceToClone), m_host.OwnerID,
                                              new Vector3((float)startPos.x, (float)startPos.y, (float)startPos.z)).
                         ToString()));
            }
            return(new LSL_String(""));
        }