Template:LSL Function/Pass
#var | value | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
p__desc | PASS_* flag | ||||||||||||||||||||
also_functions |
| ||||||||||||||||||||
constants_nb |
| ||||||||||||||||||||
caveats |
| ||||||||||||||||||||
spec | |||||||||||||||||||||
deepnotes |
TRUE & FALSE vs. PASS_* flagsPrior to Server Version 1.40.2, was couched in terms of being a boolean and the only meaningful values were 0 and 1. The best practice at that time was to use the integer constants TRUE and FALSE. The design of this function left much to be desired. The problem was that while TRUE always caused all {{{3}}} to be passed along to the the root, FALSE would only not pass {{{3}}} if there the prim had a script that handled a {{{2}}} event. This meant to fully utilize this function the prim must contain a script that handled {{{2}}} events! With the release of Server Version 1.40.2, the PASS_* flags were introduced and the subtype of the was changed. Specifically the introduction of PASS_NEVER solved this problem, allowing content creators to eliminate scripts that were only in the object to tweak the passing of {{{2}}} events. |