Difference between revisions of "User talk:Toady Nakamura"

From Second Life Wiki
Jump to navigation Jump to search
m (saving a snippet for later)
m (typo)
Line 2: Line 2:


<lsl>
<lsl>
//Counts down from 5 to 1, then dies
//Counts down from 5 to 1, then can do something else
default
default
{
{
     state_entry()
     state_entry()
     {
     {
         integer index = 5;
         integer count = 5;
         while (index)
         while (count)
         {
         {
            // wait a sec
             llSleep(1.0);// wait a sec
             llSleep(1.0);
             llSay(PUBLIC_CHANNEL, (string)count); // PUBLIC_CHANNEL has the integer value 0
            // PUBLIC_CHANNEL has the integer value 0
             llSay(PUBLIC_CHANNEL, (string)index);
   
   
             --index;
             --index;

Revision as of 11:58, 28 September 2012

Leave me a message !!! Toady Nakamura 23:44, 5 July 2012 (PDT)

<lsl> //Counts down from 5 to 1, then can do something else default {

   state_entry()
   {
       integer count = 5;
       while (count)
       {
           llSleep(1.0);// wait a sec
           llSay(PUBLIC_CHANNEL, (string)count); // PUBLIC_CHANNEL has the integer value 0

           --index;
       }

       llWhisper(0,"I am done counting now.");
   }

} </lsl>