Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

requesting link permissions

Chaz Longstaff
Registered User
Join date: 11 Oct 2006
Posts: 685
01-07-2008 09:09
Requesting link permissions: In an object, i have 3 separate child prims with their own scripts that need to link and unlink. Do I need to have all 3 separate scripts request linking permissions, or can a master script in the root prim of the object do it for them, so the user only gets asked once?
Deanna Trollop
BZ Enterprises
Join date: 30 Jan 2006
Posts: 671
01-07-2008 10:20
From: Chaz Longstaff
Do I need to have all 3 separate scripts request linking permissions
No. In fact, PERMISSION_CHANGE_LINKS can only be requested by the root prim. See:




Chaz Longstaff
Registered User
Join date: 11 Oct 2006
Posts: 685
01-07-2008 10:48
>> PERMISSION_CHANGED_LINKS ..... must be requested by a script in the object's parent/root prim. ....

kk so has to be requested by room prim in your widget. Kewl, would rather just have it requested once anyway.

>> then the script will be able to link the object containing *it* to other prims/objects (of the same owner)

But what if the prim that is rezzing and linking the 3 objects is not your root prim? Are you SOL?
Deanna Trollop
BZ Enterprises
Join date: 30 Jan 2006
Posts: 671
01-07-2008 10:55
From: Chaz Longstaff
But what if the prim that is rezzing and linking the 3 objects is not your root prim? Are you SOL?
In that case, have the child prim send a linkmessage to the root prim telling it to change links as desired.