|
Tarak Voss
Meanderer
Join date: 14 Oct 2006
Posts: 330
|
06-02-2007 01:49
I have the following script - and it works well, however, for someone to drag and drop a ptim into the object the owner must have to have touched it before hand. Can this be an automatic process - (ie. Allow drop/when drop is finishe/ disallow drop - all without the owner's involvement). default { touch_start(integer num) { llAllowInventoryDrop(allow = TRUE); } changed(integer change) { if (change & CHANGED_ALLOWED_DROP) //note that it's & and not &&... it's bitwise! { llOwnerSay("The inventory has changed as a result of a user without mod permissions dropping an item on the prim and it being allowed by the script."  ; } } }
|
|
Marcush Nemeth
Registered User
Join date: 3 Apr 2007
Posts: 402
|
06-02-2007 01:56
Put llAllowInventoryDrop(allow = TRUE); inside the state_entry event in the default state instead of in the touch_start event. Then you only need to do this once, when the object is rezzed. Ifyou want to make it togglable, I suggest making two seperate new states for the owner to do this, one with and one without permissions. For example a click by the owner would then switch the state to the one you desire. 
|
|
Tarak Voss
Meanderer
Join date: 14 Oct 2006
Posts: 330
|
06-02-2007 02:56
thanks for that
|