Jump to content

Give Object Doesn't Work with Non-Owners of Object it is in


achem Serenity
 Share

You are about to reply to a thread that has been inactive for 4492 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

Hi,

I bought the following script:

default
{
   touch_start(integer total_number)
   //has to give something on touch, so.
    {
        integer content = llGetInventoryNumber(INVENTORY_OBJECT);
    //this is the thing we're giving away.
        float rand = llFrand(content);
        //generates the random number.
        llGiveInventory(llDetectedKey(0), llGetInventoryName(INVENTORY_OBJECT, (integer)rand));
    //give random object to the person.
    }
}

However, it works for me, the owner, but when other people touch the object nothing happens.

Can anyone tell me what's the problem with the script?

 

 

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 4492 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...