Aurora.ScriptEngine.AuroraDotNetEngine.APIs.LSL_Api.AttachToAvatar C# (CSharp) Method

AttachToAvatar() public method

Attach the object containing this script to the avatar that owns it.
public AttachToAvatar ( int attachmentPoint ) : bool
attachmentPoint int
return bool
        public bool AttachToAvatar(int attachmentPoint)
        {
          var grp = (SceneObjectGroup) m_host.ParentEntity;
          ScenePresence presence = (ScenePresence) World.GetScenePresence(m_host.OwnerID);
          IAttachmentsModule attachmentsModule = World.RequestModuleInterface<IAttachmentsModule>();
             if (attachmentsModule != null)
                return attachmentsModule.AttachObjectFromInworldObject(m_localID, presence.ControllingClient, grp, attachmentPoint);
            else
                return false;
        }
        /// <summary>
LSL_Api