OpenSim.Region.ScriptEngine.Shared.Api.OSSL_Api.DropAttachmentAt C# (CSharp) Method

DropAttachmentAt() protected method

protected DropAttachmentAt ( bool checkPerms, OpenSim.Region.ScriptEngine.Shared.LSL_Types.Vector3 pos, OpenSim.Region.ScriptEngine.Shared.LSL_Types.Quaternion rot ) : void
checkPerms bool
pos OpenSim.Region.ScriptEngine.Shared.LSL_Types.Vector3
rot OpenSim.Region.ScriptEngine.Shared.LSL_Types.Quaternion
return void
        protected void DropAttachmentAt(bool checkPerms, LSL_Vector pos, LSL_Rotation rot)
        {
            if (checkPerms && ShoutErrorOnLackingOwnerPerms(ScriptBaseClass.PERMISSION_ATTACH, "Cannot drop attachment"))
            {
                return;
            }

            IAttachmentsModule attachmentsModule = m_ScriptEngine.World.AttachmentsModule;
            ScenePresence sp = attachmentsModule == null ? null : m_host.ParentGroup.Scene.GetScenePresence(m_host.ParentGroup.OwnerID);

            if (attachmentsModule != null && sp != null)
            {
                attachmentsModule.DetachSingleAttachmentToGround(sp, m_host.ParentGroup.LocalId, pos, rot);
            }
        }
OSSL_Api