|
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
|
03-18-2007 18:21
I have a need for an object to receive an item into it's 'root' inventory and then pass it to a child prim in the same object...
...I could be missing something really easy, or this process could simply be impossible...could someone please point me in the right direction for getting an inventory item transferred from the root prim of an object to a child prim?
_____________________
--AeonVox--Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms chasing ghosts, eating magic pills, and listening to repetitive, addictive, electronic music.
|
|
MadamG Zagato
means business
Join date: 17 Sep 2005
Posts: 1,402
|
03-18-2007 18:27
Hiya Kenn! Try allowing inventory drop with llAllowInventoryDrop( TRUE); Then use llGiveInventory Hope that helps!
|
|
MadamG Zagato
means business
Join date: 17 Sep 2005
Posts: 1,402
|
03-18-2007 18:30
You will need the key of the object receiving the inventory though. If it is linked but something that a customer will be using and not have a specified key you can send a linked message to request the key and respond back with the key, the do the Inventory Transfer. llGiveInventory( llDetectedKey(0), llGetInventoryName( INVENTORY_OBJECT, 0)); Is that what you are looking for? Hope I was helpful 
|
|
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
|
03-19-2007 08:35
Well...I've got all the llGiveInventory() and llAllowInventoryDrop(TRUE) already set up...the question was moving inventory around within the same object...as in from the root prim of the object to a child prim of the object. If in your message you infer that a child prim can have a key separate from the root prim and communicate that to the root via a link_message, then I think we're good...if it works 
_____________________
--AeonVox--Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms chasing ghosts, eating magic pills, and listening to repetitive, addictive, electronic music.
|
|
Adriana Caligari
Registered User
Join date: 21 Apr 2005
Posts: 458
|
03-19-2007 13:04
From: MadamG Zagato You will need the key of the object receiving the inventory though. If it is linked but something that a customer will be using and not have a specified key you can send a linked message to request the key and respond back with the key, the do the Inventory Transfer. llGiveInventory( llDetectedKey(0), llGetInventoryName( INVENTORY_OBJECT, 0)); Is that what you are looking for? Hope I was helpful  llDetectedKey will not work as the OP specifically stated that they wish to pass the item to a child prim - you cannot detect a child prim. If you wish to get the key of the child just use llGetLinkKey( link_number )
|
|
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
|
03-19-2007 13:06
Thanks Adriana...that's exactly what I was looking for. Very much appreciated.
_____________________
--AeonVox--Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms chasing ghosts, eating magic pills, and listening to repetitive, addictive, electronic music.
|