Allow avatar to put object down, move object with platform?
|
|
Lysila Denja
Registered User
Join date: 14 Nov 2007
Posts: 20
|
02-11-2008 17:20
I thought I would start a new post as this is a new question. Please let me know if I should not do that.
I asked about opening dresser drawers, which works now. My next step is to make it so that if I take something out of my inventory (or someone else does) and puts it in an open drawer, it will move with the drawer back into the dresser. Is this possible? Thanks!
|
|
Destiny Niles
Registered User
Join date: 23 Aug 2006
Posts: 949
|
02-11-2008 18:24
You can use the llAllowInventoryDrop when you open the drawer and the changed event to detect a inventory drop and then close the draw and disable the allowinventorydrop.
|
|
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
|
02-11-2008 20:00
Either make the object that is put in the drawer physical or when an object is put in the drawer, they become linked.
I am afraid neither is really the answer you were looking for thou. Sorry but it just doesn't work normally like RL; throwing a pair of socks into a drawer and then closing it.
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime. From: someone I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
02-12-2008 01:42
Any old object? No. A specific object that you have added a script to? Sure. Have the drawer and the contained object negotiate the movement in a chat channel. E.g. have the drawer tell the object how much, in what direction, and when to move.
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
02-12-2008 05:59
I've played with this before, mostly with unlinked drawers, physics will only work of the drawer uses move to target instead of set pos. and can get messy if the drawer moves fast.
another option is to link the placed object to the drawer. but if the drawer is linked it needs to have the same move script as the drawer.
you can leave the object unlinked, but it'd need a similar script in it that responds to a chatted message, but you'll also have to modify your drawer to send a message to chat as hewwee pointed out.
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
|
Lysila Denja
Registered User
Join date: 14 Nov 2007
Posts: 20
|
02-13-2008 17:23
Thanks for all the responses. I was talking to a classmate, and I think I will eventually (after this project is done and I have some time) work on allowing the drawers to accept items into the contents, at which you can right-click and open them to get the items out, and maybe hovertext, or when the drawer opens a note card opens at the same time, listing what is in the drawers contents (that may be tricky!)
|
|
Renee Roundfield
Registered User
Join date: 10 Mar 2006
Posts: 278
|
02-13-2008 18:51
I wish I had had something like that back when I had roommates -- could have left notes, gifts etc in separately owned drawers in one dresser.
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
02-13-2008 20:10
From: Lysila Denja Thanks for all the responses. I was talking to a classmate, and I think I will eventually (after this project is done and I have some time) work on allowing the drawers to accept items into the contents, at which you can right-click and open them to get the items out, and maybe hovertext, or when the drawer opens a note card opens at the same time, listing what is in the drawers contents (that may be tricky!) well you can't create or write to notecards, so that's out, but you could chat a list of contents to the person touching, preferably using llInstantMessage so you don't spam all avatars in the area.
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|