I've tried llRemoteLoadScriptPin to load scripts into child attachments, but it doesn't work. Is there any other way around this, say for one prim to load script into another attached prim within the same object?
Thanks!
These forums are CLOSED. Please visit the new forums HERE
llRemoteLoadScriptPin on child attachments? |
|
Lulu Ludovico
Registered User
![]() Join date: 24 Jan 2005
Posts: 27
|
03-14-2005 22:06
I've tried llRemoteLoadScriptPin to load scripts into child attachments, but it doesn't work. Is there any other way around this, say for one prim to load script into another attached prim within the same object?
Thanks! |
Jeffrey Gomez
Cubed™
![]() Join date: 11 Jun 2004
Posts: 3,522
|
03-15-2005 01:43
Only if the child primitive has its pin set (read as: a script was placed in there first). This is by design to prevent recursive copying scripts and, well... a whole lot of bad stuff no one wants.
There may still be bugs allowing you to do otherwise, but I refuse to list any if I find them. ![]() As a footnote, llRemoteScriptPin acts rather... "funny" with certain commands (like on_rez), as well. _____________________
---
|
Lulu Ludovico
Registered User
![]() Join date: 24 Jan 2005
Posts: 27
|
03-15-2005 01:59
Only if the child primitive has its pin set Well, I've tried putting the "Set Pin" script into the child prim, but it doesn't work. If The RemoteLoadScriptPin looks for the child prim name (not the object/root prim name), then it doesn't detect it. If the RemoteLoadScriptPin looks for the object/root prim name, it detects it, and drops the script into the root prim, not the child prim. i.e. it's as if I've dropped the "Set Pin" script into the root prim. |
Jeffrey Gomez
Cubed™
![]() Join date: 11 Jun 2004
Posts: 3,522
|
03-15-2005 12:55
This is why you should try llGetLinkKey:
CODE llRemoteLoadScriptPin(key target, string name, integer pin, integer running, integer start_param) You need to reference the child prim by its key value, not its name. Name is for the script I believe (though if it's like most functions, it might also accept a script key). If, however, you're using a Sensor to go from key to name - same problem. Sensors only pick up roots unless the key is specified, if I recall. Again, llGetLinkKey is the way to go. _____________________
---
|
Lulu Ludovico
Registered User
![]() Join date: 24 Jan 2005
Posts: 27
|
Okay it works now, thanks!
03-15-2005 23:43
I don't know what happened, but it works now. Thanks! I did reference the key initially too.
|