Difference between revisions of "LSL Delay"
Pedro Oval (talk | contribs) (→Events: Changed to be more factually accurate) |
|||
(18 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
{{LSL Header|ml=*}} | |||
{{RightToc}} | |||
{{LSLC|}} | |||
==Functions== | |||
Some LSL functions delay script execution when they are called. | Some LSL functions delay script execution when they are called. | ||
Line 4: | Line 9: | ||
{| | {| | ||
|- valign="top" | |||
| | | | ||
{|{{Prettytable}} | {|{{Prettytable}} | ||
Line 12: | Line 18: | ||
|| 20.0 | || 20.0 | ||
|| [[llRefreshPrimURL]] | || [[llRefreshPrimURL]] | ||
|- | |||
|| 20.0 | |||
|| [[llSetPrimURL]] | |||
|- | |- | ||
|| 20.0 | || 20.0 | ||
Line 39: | Line 48: | ||
|| 3.0 | || 3.0 | ||
|| [[llGiveInventoryList]] | || [[llGiveInventoryList]] | ||
|- | |- | ||
|| 2.0 | || 2.0 | ||
Line 57: | Line 63: | ||
|| 2.0 | || 2.0 | ||
|| [[llGetParcelPrimOwners]] | || [[llGetParcelPrimOwners]] | ||
|- | |||
|| 1.0 | |||
|| [[llTextBox]] | |||
|- | |- | ||
|| 1.0 | || 1.0 | ||
|| [[llRequestSimulatorData]] | || [[llRequestSimulatorData]] | ||
|} | |} | ||
| | | | ||
Line 69: | Line 75: | ||
! {{HoverText|Delay|The delay in seconds}} | ! {{HoverText|Delay|The delay in seconds}} | ||
! Function | ! Function | ||
|- | |||
|| 1.0 | |||
|| [[llRequestInventoryData]] | |||
|- | |- | ||
|| 1.0 | || 1.0 | ||
Line 183: | Line 192: | ||
|| 0.1 | || 0.1 | ||
|| [[llAddToLandBanList]] | || [[llAddToLandBanList]] | ||
|- | |||
|| variable | |||
|| [[llSleep|llSleep(float variable)]] | |||
|} | |||
|} | |||
==Events== | |||
All events except [[state_entry]] and [[state_exit]] have a minimum delay. The default delay between events is 0.022 seconds (one simulator frame); a longer delay can be specified with [[llMinEventDelay]]. A delay less than the default will have the same effect as if it were the default. The [[link_message]], [[run_time_permissions]] and [[http_request]] events don't obey the delay set in '''llMinEventDelay'''. While there is a maximum of one event per simulator frame (with the exception of state_entry and state_exit, which can be triggered multiple times in one frame), those events that don't obey '''llMinEventDelay''' are scheduled with a higher priority than the rest. | |||
{| | |||
|- valign="top" | |||
| | |||
{|{{Prettytable}} | |||
|- {{Hl2}} | |||
! {{HoverText|Delay|The minimum delay in seconds}} | |||
! Events | |||
|- | |||
||0.022 | |||
||[[at_rot_target]] | |||
|- | |||
||0.022 | |||
||[[at_target]] | |||
|- | |||
|| | |||
||[[attach]] | |||
|- | |||
||0.022 | |||
||[[changed]] | |||
|- | |||
|| | |||
||[[collision]] | |||
|- | |||
|| | |||
||[[collision_end]] | |||
|- | |||
|| | |||
||[[collision_start]] | |||
|- | |||
||0.022 | |||
||[[control]] | |||
|- | |||
|| | |||
||[[dataserver]] | |||
|- | |||
|| | |||
||[[email]] | |||
|- | |||
||0.022(*) | |||
||[[http_request]] | |||
|- | |||
|| | |||
||[[http_response]] | |||
|} | |||
| | |||
{|{{Prettytable}} | |||
|- {{Hl2}} | |||
! {{HoverText|Delay|The minimum delay in seconds}} | |||
! Events | |||
|- | |||
|| | |||
||[[land_collision]] | |||
|- | |||
|| | |||
||[[land_collision_end]] | |||
|- | |||
|| | |||
||[[land_collision_start]] | |||
|- | |||
||0.022(*) | |||
||[[link_message]] | |||
|- | |||
||0.022 | |||
||[[listen]] | |||
|- | |||
|| | |||
||[[money]] | |||
|- | |||
|| | |||
||[[moving_end]] | |||
|- | |||
|| | |||
||[[moving_start]] | |||
|- | |||
||0.022 | |||
||[[no_sensor]] | |||
|- | |||
||0.022 | |||
||[[not_at_rot_target]] | |||
|- | |||
||0.022 | |||
||[[not_at_target]] | |||
|- | |||
|| | |||
||[[object_rez]] | |||
|} | |||
| | |||
{|{{Prettytable}} | |||
|- {{Hl2}} | |||
! {{HoverText|Delay|The minimum delay in seconds}} | |||
! Events | |||
|- | |||
|| | |||
||[[on_rez]] | |||
|- | |||
|| | |||
||[[path_update]] | |||
|- | |||
|| | |||
||[[remote_data]] | |||
|- | |||
||0.022(*) | |||
||[[run_time_permissions]] | |||
|- | |||
||0.022 | |||
||[[sensor]] | |||
|- | |||
||0(**) | |||
||[[state_entry]] | |||
|- | |||
||0(**) | |||
||[[state_exit]] | |||
|- | |||
||0.022 | |||
||[[timer]] | |||
|- | |||
||0.022 | |||
||[[touch]] | |||
|- | |||
||0.022 | |||
||[[touch_end]] | |||
|- | |||
||0.022 | |||
||[[touch_start]] | |||
|- | |||
|| | |||
||[[transaction_result]] | |||
|} | |} | ||
|} | |} | ||
(*) These events don't obey '''llMinEventDelay''' and are given a higher priority. | |||
(**) These events don't obey '''llMinEventDelay''' and can be triggered more than once per simulator frame. |
Latest revision as of 08:16, 19 December 2012
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Functions
Some LSL functions delay script execution when they are called.
The delay is measured in seconds (it's a float value).
Events
All events except state_entry and state_exit have a minimum delay. The default delay between events is 0.022 seconds (one simulator frame); a longer delay can be specified with llMinEventDelay. A delay less than the default will have the same effect as if it were the default. The link_message, run_time_permissions and http_request events don't obey the delay set in llMinEventDelay. While there is a maximum of one event per simulator frame (with the exception of state_entry and state_exit, which can be triggered multiple times in one frame), those events that don't obey llMinEventDelay are scheduled with a higher priority than the rest.
|
|
|
(*) These events don't obey llMinEventDelay and are given a higher priority.
(**) These events don't obey llMinEventDelay and can be triggered more than once per simulator frame.