Difference between revisions of "Template:LSL Function/Pass"

From Second Life Wiki
Jump to navigation Jump to search
m
Line 25: Line 25:
! Description
! Description
{{!}}-
{{!}}-
{{!}} {{LSL Const|PASS_IF_NOT_HANDLED|integer|0|c={{{3|}}} are not passed on to the root while there is a script in the prim.}}
{{!}} {{#vardefineecho:PASS_IF_NOT_HANDLED|{{LSL Const|PASS_IF_NOT_HANDLED|integer|0|c={{{3|}}} are not passed on to the root while there is a script in the prim.}}}}
{{!}} {{#var:value}}
{{!}} {{#var:value}}
{{!}} {{no|not passed}}
{{!}} {{no|not passed}}
Line 31: Line 31:
{{!}} {{#ifeq:{{{default|}}}|{{#var:cname}}|'''Default:'''}} {{#var:comment}}
{{!}} {{#ifeq:{{{default|}}}|{{#var:cname}}|'''Default:'''}} {{#var:comment}}
{{!}}-
{{!}}-
{{!}} {{LSL Const|PASS_ALWAYS|integer|1|c={{{3|}}} are passed from children on to the root.}}
{{!}} {{#vardefineecho:PASS_ALWAYS|{{LSL Const|PASS_ALWAYS|integer|1|c={{{3|}}} are passed from children on to the root.}}}}
{{!}} {{#var:value}}
{{!}} {{#var:value}}
{{!}} {{yes|passed}}
{{!}} {{yes|passed}}
Line 37: Line 37:
{{!}} {{#ifeq:{{{default|}}}|{{#var:cname}}|'''Default:'''}} {{#var:comment}}
{{!}} {{#ifeq:{{{default|}}}|{{#var:cname}}|'''Default:'''}} {{#var:comment}}
{{!}}-
{{!}}-
{{!}} {{LSL Const|PASS_NEVER|integer|2|c={{{3|}}} are never passed on to the root.}}
{{!}} {{#vardefineecho:PASS_NEVER|{{LSL Const|PASS_NEVER|integer|2|c={{{3|}}} are never passed on to the root.}}}}
{{!}} {{#var:value}}
{{!}} {{#var:value}}
{{!}} {{no|not passed}}
{{!}} {{no|not passed}}
Line 51: Line 51:
{{#var:caveats}}}}
{{#var:caveats}}}}
}}
}}
{{#if:{{{default|}}}|
{{#vardefine:header_footnote|{{#var:header_footnote}}{{PBR}}
A prims default pass value is {{#var:{{{default|}}}}}.{{PBR}}
}}
}}


{{#vardefine:spec|{{PBR}}
{{#vardefine:spec|{{PBR}}

Revision as of 20:56, 1 January 2016

#var value
p__desc PASS_* flag
also_functions
constants_nb
Constant Value Script No Script Description
PASS_IF_NOT_HANDLED 0 not passed passed are not passed on to the root while there is a script in the prim.
PASS_ALWAYS 1 passed passed are passed from children on to the root.
PASS_NEVER 2 not passed not passed are never passed on to the root.
caveats
  • Has no known effect if called from within the root prim.
spec

{{{2}}} Passing

Whether are passed to the root prim depends not only on which PASS_* flag is selected, but may also depend on if there is a script that in the prim that handles one of the events.