Difference between revisions of "LlMinEventDelay"
m |
(the leading space tells the wiki engine to wrap the text in a pre tag.) |
||
Line 11: | Line 11: | ||
|constants | |constants | ||
|examples= | |examples= | ||
<lsl> | <lsl>default | ||
default | |||
{ | { | ||
state_entry() | state_entry() | ||
Line 23: | Line 22: | ||
//with the word "Touched" in a split second if you held the mouse button down. | //with the word "Touched" in a split second if you held the mouse button down. | ||
} | } | ||
} | }</lsl> | ||
</lsl> | |||
Where as, if in one object you place this script (for the sake of fun call the object "Sandy Powell"). - | Where as, if in one object you place this script (for the sake of fun call the object "Sandy Powell"). - | ||
<lsl> | <lsl>default | ||
default | |||
{ | { | ||
touch(integer detected) | touch(integer detected) | ||
Line 36: | Line 32: | ||
llSay(0, "Can you hear me mother?");//Northern English accent. Catch phase of Sandy Powell (comedian). | llSay(0, "Can you hear me mother?");//Northern English accent. Catch phase of Sandy Powell (comedian). | ||
} | } | ||
} | }</lsl> | ||
</lsl> | |||
and this in another object called "Mother" - | |||
<lsl> | <lsl>default | ||
default | |||
{ | { | ||
state_entry() | state_entry() | ||
Line 53: | Line 47: | ||
llSay(0, "Eh?"); | llSay(0, "Eh?"); | ||
} | } | ||
} | }</lsl> | ||
</lsl> | |||
the response in chat is as follows - | |||
<lsl> | <lsl> | ||
Line 104: | Line 97: | ||
[12:52] Mother: Eh? | [12:52] Mother: Eh? | ||
</lsl> | </lsl> | ||
and no more events are triggered. This is an example of lost transferred info because of [[llMinEventDelay]] so be careful with it. | |||
|helpers | |helpers | ||
|also_functions | |also_functions |
Revision as of 14:28, 3 June 2009
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: llMinEventDelay( float delay );125 | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
Set the minimum time between events being handled.
• float | delay | – | time in seconds |
Caveats
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>
Where as, if in one object you place this script (for the sake of fun call the object "Sandy Powell"). -
<lsl>default {
touch(integer detected) { llSay(0, "Can you hear me mother?");//Northern English accent. Catch phase of Sandy Powell (comedian). }
}</lsl>
and this in another object called "Mother" -
<lsl>default {
state_entry() { llMinEventDelay(5.0); llListen(0, "Sandy Powell", "", ""); } listen(integer chan, string name, key id, string msg) { llSay(0, "Eh?"); }
}</lsl>
the response in chat is as follows -
<lsl> [12:51] Sandy Powell: Can you hear me mother? [12:51] Mother: Eh? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Sandy Powell: Can you hear me mother? [12:51] Mother: Eh? [12:51] Mother: Eh? [12:51] Mother: Eh? [12:51] Mother: Eh? [12:51] Mother: Eh? [12:51] Mother: Eh? [12:52] Mother: Eh? [12:52] Mother: Eh? [12:52] Mother: Eh? [12:52] Mother: Eh? [12:52] Mother: Eh? [12:52] Mother: Eh? [12:52] Mother: Eh? </lsl>
and no more events are triggered. This is an example of lost transferred info because of llMinEventDelay so be careful with it.See Also
Articles
• | LSL Delay | – | for default values |