LlSameGroup

De DigiWiki.

// Gives inventory object only to agents with the same active group
default
{
    touch_start(integer total_number)
    {
        integer i;
 
        for (i = 0; i < total_number; i++)
        {
            if (llSameGroup(llDetectedKey(i))) // same as llDetectedGroup(i) (with llDetectedGroup, detected does not need to be in the sim)
              llGiveInventory(llDetectedKey(i), llGetInventoryName(INVENTORY_OBJECT, 0));
           else
              llSay(0, "Wrong active group!");
        }
    }
}
Outils personnels
  • Cette page a été consultée 461 fois.
donate
Google Ads