|
WotS Mahana
Registered User
Join date: 14 Oct 2006
Posts: 2
|
10-19-2006 08:14
hello friends,
how can i call an event when i put a object to another object in sl.
im experienced in scripting and programming but sl api is some kind of new for me.
thanks in advance
jens
|
|
Joannah Cramer
Registered User
Join date: 12 Apr 2006
Posts: 1,539
|
10-19-2006 08:48
From: WotS Mahana how can i call an event when i put a object to another object in sl. default {
changed( integer Change ) {
if( Change & CHANGED_INVENTORY ) { ... } // something was placed inside the item } }
this is triggered for object which receives something, or there's change in its inventory. Detecting it for object which is *placed* into another is quite different matter though and not sure if doable o.O;
|
|
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
|
10-19-2006 08:55
I can't see anything in a script in object A that would be triggered when you put object A into object B's contents. It's not rezzed, it's not changed (and even if it's name is changed it's not instantiated so the script isn't running I think?).
The change & CHANGED_INVENTORY is definitely the way for the other though.
|
|
WotS Mahana
Registered User
Join date: 14 Oct 2006
Posts: 2
|
10-19-2006 08:56
thx
this must be i ve been lookin for
|