Paul Wardark
Wait, what?
Join date: 10 Jan 2009
Posts: 383
|
09-20-2009 14:29
I'm trying to make a script reset on inventory change, when the object is no-mod. I've already included llAllowInventoryDrop(TRUE); in the script. Someone told me to use this-
changed(integer change) { if ((change & CHANGED_ALLOWED_DROP) == CHANGED_ALLOWED_DROP) { llResetScript(); }
But that doesn't work. Anyone have any suggestions?
|
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
|
09-20-2009 15:07
What you want to do is simply determine whether the condition (change & CHANGED_ALLOWED_DROP) is true, so that if statement should just be
if( change & CHANGED_ALLOWED_DROP)
_____________________
It's hard to tell gender from names around here but if you care, Rolig = she. And I exist only in SL, so don't ask....  Look for my work in XStreetSL at 
|