Presentation Board

From OpenSimulator

Revision as of 14:07, 28 September 2020 by Djphil (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
integer slidecount = 0;
list inventory;
 
default
{
    state_entry()
    {
        string  name;
        integer i;
        integer num = llGetInventoryNumber(INVENTORY_TEXTURE);
 
        for (i = 0; i < num; ++i)
        {
            name = llGetInventoryName(INVENTORY_TEXTURE, i);
            inventory += name;
        }
    }
 
    touch_start(integer number)
    {
        if (slidecount == (llGetListLength(inventory)))
        {
            llSay(PUBLIC_CHANNEL, "Dit was de laatste slide. Presentatie wordt herladen...");
            slidecount = 0;   
        }
 
        llSetTexture(llGetInventoryName(INVENTORY_TEXTURE, slidecount), ALL_SIDES);
        slidecount += 1; 
    }
}
Personal tools
General
About This Wiki