First question:- Does the target (future child) have to be rezzed before linking or can I link to its key in inventory prior to rezzing and then rez it and have it linked? (I've tried both ways and neither are working.)
Both the parent and the target are owned by me.
Permission has been set for the object. "The target doesn't require permission."
There are no restrictions on the object.
"No Transfer" restrictions exist on the target but I'm not transferring it.
Neither is attached.
They don't link and I get the error :-Script trying to link but permissions or target are invalid!
Some possible causes, not spelled out in detail in the Forums Wiki:-
Although the only restriction on the target is NoTransfer, the target contains some NC/NM scripts and it has numerous (20 to 30 primitives), many of which also contain NC/NM scripts.
The object is not physical but the target is, however that was not a problem linking with the link tool and it still didn't work when I tried it with the object physical too.
The object and some of its primitives contain scripts that are no copy, no modify but I'm not copying or modifying them by linking and again, that didn't stop linking with the link tool.
I also tried it making the target the primary and the object the child but that didn't work either (llCreateLink(Target,FALSE); )
Here is the object code:-
CODE
vector base;
key Target;
default
{
state_entry() {
llRequestPermissions(llGetOwner(),PERMISSION_CHANGE_LINKS);
llSleep(10); //Just to make sure the permission had time to click and stick
Target = llGetInventoryKey("future child");
base=llGetPos();
llRezObject("future child",base,ZERO_VECTOR,ZERO_ROTATION,0);
llCreateLink(Target,TRUE);
}
}