Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Is llBreakAllLinks() borked?

Dominus Skye
Bug Magnet
Join date: 31 Oct 2004
Posts: 54
04-13-2005 12:56
Hi, for some reason the testing I have been doing on breaking/relinking recently isn't working today, even though it worked fine the other day.

If I place the following within the parent object of a linked set, it's not delinking. I only 'touch' the item once I have granted break link permission. Any clues why this is not working?

CODE

default
{
on_rez(integer scrap)
{ llResetScript();}

state_entry()
{
llRequestPermissions(llGetOwner(),PERMISSION_CHANGE_LINKS);
}

touch_start(integer total_number)
{
llBreakAllLinks();
}
}

Thanks, Dominus

ps not sure why the code window is displaying so many spaces between the 'g' and the 'e' in PERMISSION_CHANGE_LINKS but its accurate in the code
'
Dominus Skye
Bug Magnet
Join date: 31 Oct 2004
Posts: 54
Addendum
04-13-2005 14:11
Hmmm, I just took the object to cordova sandbox and it delinked succesfully, but it will not do so when I rez it at my home sim....
Jeffrey Gomez
Cubed™
Join date: 11 Jun 2004
Posts: 3,522
04-13-2005 14:12
This worked just fine.

CODE
default
{
state_entry()
{
llRequestPermissions(llGetOwner(),PERMISSION_CHANGE_LINKS);
}
run_time_permissions(integer perm)
{
if(perm)
llBreakAllLinks();
}
}
_____________________
---
Dominus Skye
Bug Magnet
Join date: 31 Oct 2004
Posts: 54
04-13-2005 15:25
Thx Jeffrey,

Seems it was a problem with the sim rather than the script. The sims since been rebooted an its all working fine now :)

Regards,
Dominus