Presentation Board
From OpenSimulator
(Difference between revisions)
(New page: <source lang="lsl> integer slidecount = 0; list inventory; default { state_entry() { string name; integer i; integer num = llGetInventoryNumber(INVENTORY_TEXTURE); ...) |
|||
Line 1: | Line 1: | ||
− | <source lang= | + | <source lang=lsl> |
integer slidecount = 0; | integer slidecount = 0; | ||
list inventory; | list inventory; |
Revision as of 23:55, 5 November 2008
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 num_detected) { if(slidecount == (llGetListLength(inventory))) { llSay(0,"Dit was de laatste slide. Presentatie wordt herladen..."); slidecount = 0; } llSetTexture(llGetInventoryName(INVENTORY_TEXTURE, slidecount), ALL_SIDES); slidecount +=1; } }