Difference between revisions of "LlMinEventDelay"

From Second Life Wiki
Jump to navigation Jump to search
m
Line 20: Line 20:
     touch(integer detected)
     touch(integer detected)
     {
     {
         llSay(0, "Touched.");//Without the event delay set touch would cause the screen to fill with the word "Touched" in a split second.
         llSay(0, "Touched.");//Without the event delay set touch would cause the screen to fill  
                            //with the word "Touched" in a split second if you held the mouse button down.
     }
     }
}
}

Revision as of 19:32, 1 June 2009

Summary

Function: llMinEventDelay( float delay );

Set the minimum time between events being handled.

• float delay time in seconds

Examples

<lsl> default {

   state_entry()
   {
       llMinEventDelay(5.0);
   }
   touch(integer detected)
   {
       llSay(0, "Touched.");//Without the event delay set touch would cause the screen to fill 
                            //with the word "Touched" in a split second if you held the mouse button down.
   }

}

</lsl>

See Also

Articles

•  LSL Delay for default values

Deep Notes

Search JIRA for related Issues

Signature

function void llMinEventDelay( float delay );