|
Adriana Caligari
Registered User
Join date: 21 Apr 2005
Posts: 458
|
08-31-2006 05:26
Just been making a little post box and hit some behaviour I didnt expect.
I thought that if you put llAllowInventoryDrop in a main prim ( of a multi prim object ) the whole thing would allow you to drop stuff in, but when i did it - it only allowed me to drop stuff into the main prim.
I then added an llAllowInventoryDrop into a sub-prim and sure enough that prim then allowed it - but the object stayed in the sub-prim.
Is that correct ?
If that's so it means I have to add scripts to all of the sub-prims to pass any dropped objects back the main-prim for processing - do not like the idea of that at all.
Any suggestions ?
|
|
BamBam Sachertorte
floral engineer
Join date: 12 Jul 2005
Posts: 228
|
08-31-2006 08:19
Maybe you could surround your post box with a transparent cube. I think that drag operations would always target the cube. Too bad there is no equivalent to llPassTouches() for inventory drop.
|
|
Adriana Caligari
Registered User
Join date: 21 Apr 2005
Posts: 458
|
08-31-2006 08:27
That is the way I am going - but found another weird behaviour
You cannot drop onto an invisible prim. ( Your hand/selector doesnt change as it doesnt recognise there is anything there )
It either has to be slighty opaque ( 0.1 ) or you have to have view transparent switched on.
|
|
Sitting Lightcloud
Registered User
Join date: 13 May 2004
Posts: 109
|
08-31-2006 08:58
do you want it to be dropped in the sub prims?
|
|
Adriana Caligari
Registered User
Join date: 21 Apr 2005
Posts: 458
|
08-31-2006 09:37
No - I want it dropped in the main prim.
But unless it is encased - as mentioned above ,the item is either dropped in to the sub-prim that the hand/selector is over.
Or it is denied, if the sub-prim doesnt have allow drop.
The problem there is then that the user ( who didnt build it ) will have to move their hand around until they find the main prim which will allow a drop.
If a sub-prim is given allow drop I then have to add 5 or 6 superfluous scripts just to detect the drop and pass the dropped object back to the main prim.
As mentioned it would be nice if it worked like pass touches ( which I actually thought it did ) whereby if the main prim is allowed drop then anything dropped onto any part of the structure is put in the main prim.
|
|
Sitting Lightcloud
Registered User
Join date: 13 May 2004
Posts: 109
|
08-31-2006 12:10
Ok Might be a new 'feature' then when I reacently used it you had to manually open the inventory and drop it directly into the contents folder. Just tested it too and I don't see a hand anywhere? 
|
|
Adrian Zobel
Registered User
Join date: 4 Jan 2006
Posts: 49
|
08-31-2006 12:40
How about sending a linkmessage to the main prim and have a script there use llAllowInventoryDrop(). Won't that allow it only into the main prim?
|
|
Adriana Caligari
Registered User
Join date: 21 Apr 2005
Posts: 458
|
08-31-2006 13:00
From: Sitting Lightcloud Ok Might be a new 'feature' then when I reacently used it you had to manually open the inventory and drop it directly into the contents folder. Just tested it too and I don't see a hand anywhere?  You can hold down ctrl and drag onto a prim to drop content inventory now - Hand was an error I meant if you see a box with a plus in it - then it is going to drop in world - if the box is clear then it is going to drop into the prim the box is over.
|