Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

NEED HELP with a project i'm workin on

Reina Therian
Registered User
Join date: 20 Jun 2004
Posts: 11
08-15-2004 19:54
Hi everyone. I need help with a scripting project i've been working on and thought maybe someone here might have some suggestions. I'll just give you guys an example of what i'm trying to do 'cause explaining the whole thing would be way too complicated.

I have 1 object with two linked prims. The parent and the child. What I need to be able to do is know WHEN an object is dropped into the CHILD, and WHAT is in the CHILD's inventory. The llGetInventory function will only tell me what is in the parent's inventory. The changed(CHANGED_INVENTORY) event seems to work to let me know WHEN the object is dropped, but i can't figure out how to tell WHAT has been dropped.

Is there any way to get the inventory of a child prim? Or if not, does anyone have any suggestions? I've tried messing around with llListen & llMessageLinked functions to allow the two prims to communicate, but i couldn't really get it working at all.

Please let me know if you guys have any ideas. Thanks :)
Azelda Garcia
Azelda Garcia
Join date: 3 Nov 2003
Posts: 819
08-16-2004 05:27
You'll need to add a script to the child prim as far as I know.

LinkMessages are the way to go. There's a few examples of linkmessages in the scripting library and at http://mmogtoolkit.sourceforge.net .

Azelda
_____________________