////////////////////////////////////////////////////////////////////////////
///////////////////// Creator: Chasingred3 Ixtab ///////////////////////////
////////////////////////////////////////////////////////////////////////////
// This script makes a "projector" like prim, anybody can ctrl drag a
// texture into it and it will cycle through the textures, making a public Billboard.
// PLEASE dont try to sell this to some n00b or I will have to hunt you down and kill you, thank you! =^.^=
RandomTexture ()
{
llSetTexture (llGetInventoryName (INVENTORY_TEXTURE, (integer) llFrand (llGetInventoryNumber (INVENTORY_TEXTURE))), ALL_SIDES);
}
default
{
state_entry ()
{
llAllowInventoryDrop (TRUE);
llSetTimerEvent (60.0);
RandomTexture ();
}
timer ()
{
RandomTexture ();
}
touch_start (integer touches)
{
RandomTexture ();
}
changed (integer Change)
{
if (Change & (CHANGED_ALLOWED_DROP | CHANGED_INVENTORY))
RandomTexture ();
}
}