OsForceBreakLink

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
(Add See Also)
m (Change See Also)
 
(One intermediate revision by one user not shown)
Line 8: Line 8:
 
//
 
//
 
// osForceBreakLink Script Example
 
// osForceBreakLink Script Example
// Authior: djphil
+
// Author: djphil
 
//
 
//
  
Line 54: Line 54:
 
|additional_info=This function was added in 0.8-post-fixes
 
|additional_info=This function was added in 0.8-post-fixes
 
}}
 
}}
'''See Also:'''
+
== See Also ==
 
* [[osForceBreakAllLinks]]
 
* [[osForceBreakAllLinks]]
 
* [[osForceCreateLink]]
 
* [[osForceCreateLink]]
 
* [[osForceBreakLink]]
 
* [[osForceBreakLink]]

Latest revision as of 18:57, 5 December 2020

osForceBreakLink(integer linknumber)
  • Identical to llBreakLink(integer linknumber) except that it doesn't require the link permission to be granted. Present in 0.8 and later.
Threat Level VeryLow
Permissions ${OSSL|osslParcelOG}ESTATE_MANAGER,ESTATE_OWNER
Extra Delay 0 seconds
Example(s)
//
// osForceBreakLink Script Example
// Author: djphil
//
 
key target = "fbe8ad1b-b7bf-4919-b219-3ebf78e5f607";
integer parent = LINK_ROOT;
integer switch;
 
default
{
    state_entry()
    {
        if (osIsUUID(target))
        {
            llSay(PUBLIC_CHANNEL, "Touch to see osForceBreakLink usage.");
        }
 
        else
        {
            llSay(PUBLIC_CHANNEL, "Invalid uuid detected ...");
        }
    }
 
    touch_start(integer number)
    {
        if (switch = !switch)
        {
            osForceCreateLink(target, parent);
        }
 
        else
        {
            osForceBreakLink(2);
        }
    }
 
    changed(integer change)
    {
        if (change & CHANGED_LINK)
        {
            llSay(PUBLIC_CHANNEL, "The number of links have changed.");
        }
    }
}
Notes
This function was added in 0.8-post-fixes


[edit] See Also

Personal tools
General
About This Wiki