Primager.  Presents images on the surfaces of a prim.   Works best against a wall if some of the images have alpha.   Presents the images in contents.  In sequence.  Can be used in a curved prim.   
float randFMTO(float FM, float TO)
{ return llFrand(TO- FM) + FM; }
User defined function
Gets random number in the range FM -- TO.
integer CrTXUR;
integer TotTXUR;
float wait = 20; //Number of seconds each picture is shown
Global variables
default {
   state_entry()
 

{ llSetTimerEvent(wait);
TotTXUR=llGetInventoryNumber(INVENTORY_TEXTURE); }

 

timer()

 

{if(0 < TotTXUR)

 

{if(CrTXUR < TotTXUR - 1)
{ CrTXUR++; }

 

else

 

{ CrTXUR=0;
TotTXUR=llGetInventoryNumber(INVENTORY_TEXTURE);}

 

llSetTexture(llGetInventoryName(INVENTORY_TEXTURE, CrTXUR), ALL_SIDES); }

 
  }
}
Close Timer block
Close default
The Thinkerer 09/13/2008
Copyright (c) D. F. Dansereau & S. H. Evans

Site Map

Where start?

LODScr
Famous fables