Unofficial LSL Reference

[[functions:llpasstouches]]


Unofficial LSL reference

User Tools

Login

You are currently not logged in! Enter your authentication credentials below to log in. You need to have cookies enabled to log in.

Login

Forgotten your password? Get a new one: Set new password

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

functions:llpasstouches [2016-01-02 09:03 SLT]
sei Precedence with multiple scripts calling it
functions:llpasstouches [2016-01-02 09:10 SLT] (current)
sei Reordering
Line 29: Line 29:
   * If the root prim has an active touch event, a touch cursor will be shown for all prims in the linkset, regardless of the setting of this function. In other words, a value of $ct[PASS_NEVER] will not make the hand cursor disappear for the child prim the script is in, even if there'​s no active touch event in the child.   * If the root prim has an active touch event, a touch cursor will be shown for all prims in the linkset, regardless of the setting of this function. In other words, a value of $ct[PASS_NEVER] will not make the hand cursor disappear for the child prim the script is in, even if there'​s no active touch event in the child.
   * $perscript   * $perscript
 +     * If the same script calls this function several times, the one that was executed last prevails. If several scripts in the same prim call it, the one with the highest value takes precedence ($ct[PASS_NEVER] has precedence over $ct[PASS_ALWAYS],​ which has precedence over $ct[PASS_IF_NOT_HANDLED]).
   * What does //active// mean in this case? Touch events are //active// only if the script is running and in a state that has a touch event. If the script stops running, or if the current state has no touch event, there will be no active touch event for that script.   * What does //active// mean in this case? Touch events are //active// only if the script is running and in a state that has a touch event. If the script stops running, or if the current state has no touch event, there will be no active touch event for that script.
-  * If the same script calls this function several times, the one that was executed last prevails. If several scripts in the same prim call it, the one with the highest value takes precedence ($ct[PASS_NEVER] has precedence over $ct[PASS_ALWAYS],​ which has precedence over $ct[PASS_IF_NOT_HANDLED]). 
  
 ===== Short examples ===== ===== Short examples =====