Difference between revisions of "Template:LSL Constants Sensor"

From Second Life Wiki
Jump to navigation Jump to search
(From the test on server 1.38.4)
Line 4: Line 4:
{{{!}} {{Prettytable|style={{{tstyle|}}}}}
{{{!}} {{Prettytable|style={{{tstyle|}}}}}
{{!}}-{{Hl2}}
{{!}}-{{Hl2}}
! colspan="2" {{!}} '''{{{1|}}} Flag'''  
! colspan="2" {{!}} '''{{{1|}}} Flag Mask'''  
! '''Description'''
! '''Description'''
{{!}}-
{{!}}-
{{!}} {{#vardefine:AGENT|{{LSL Const|AGENT|integer|1|hex=0x1|c=This is used to find agents only.}}}}{{#var:AGENT}}
{{!}} {{#vardefine:AGENT|{{LSL Const|AGENT|integer|1|hex=0x1|c=Agents.}}}}{{#var:AGENT}}
{{!}} {{#var:value}}
{{!}} {{#var:value}}
{{!}} {{#var:comment}}
{{!}} {{#var:comment}}
{{!}}-
{{!}}-
{{!}} {{#vardefine:ACTIVE|{{LSL Const|ACTIVE|integer|2|hex=0x2|c=This is used to find physical objects that are moving or objects containing an active script.}}}}{{#var:ACTIVE}}
{{!}} {{#vardefine:ACTIVE|{{LSL Const|ACTIVE|integer|2|hex=0x2|c=Physical objects.}}}}{{#var:ACTIVE}}
{{!}} {{#var:value}}
{{!}} {{#var:value}}
{{!}} {{#var:comment}}
{{!}} {{#var:comment}}
Line 18: Line 18:
{{{!}} {{Prettytable|style={{{tstyle|}}}}}
{{{!}} {{Prettytable|style={{{tstyle|}}}}}
{{!}}-{{Hl2}}
{{!}}-{{Hl2}}
! colspan="2" {{!}} '''{{{1|}}} Flag'''  
! colspan="2" {{!}} '''{{{1|}}} Flag Mask'''  
! '''Description'''
! '''Description'''
{{!}}-
{{!}}-
{{!}} {{#vardefine:PASSIVE|{{LSL Const|PASSIVE|integer|4|hex=0x4|c=This is used to find physical objects that are not moving or non-physical objects containing an inactive script or a non-scripted object.}}}}{{#var:PASSIVE}}
{{!}} {{#vardefine:PASSIVE|{{LSL Const|PASSIVE|integer|4|hex=0x4|c=Non-physical objects.}}}}{{#var:PASSIVE}}
{{!}} {{#var:value}}
{{!}} {{#var:value}}
{{!}} {{#var:comment}}
{{!}} {{#var:comment}}
{{!}}-
{{!}}-
{{!}} {{#vardefine:SCRIPTED|{{LSL Const|SCRIPTED|integer|8|hex=0x8|c=This is used to find objects containing an active script.}}}}{{#var:SCRIPTED}}
{{!}} {{#vardefine:SCRIPTED|{{LSL Const|SCRIPTED|integer|8|hex=0x8|c=Objects containing any active script.}}}}{{#var:SCRIPTED}}
{{!}} {{#var:value}}
{{!}} {{#var:value}}
{{!}} {{#var:comment}}
{{!}} {{#var:comment}}
{{!}}}
{{!}}}
{{#if:{{{no_wrapper|}}}||{{!}}} }}
{{#if:{{{no_wrapper|}}}||{{!}}} }}
{{{!}} {{Prettytable}}
{{!}}-{{Hl2}}
!
!Scripted
!Not Scripted
{{!}}-
! Physical
{{!}} 10 ({{#var:ACTIVE}}|{{#var:SCRIPTED}})
{{!}} 2 ({{#var:ACTIVE}})
{{!}}-
! Non-Physical
{{!}} 12 ({{#var:PASSIVE}}|{{#var:SCRIPTED}})
{{!}} 4 ({{#var:PASSIVE}})
{{!}}-
{{!}}}

Revision as of 23:25, 21 May 2010

Flag Mask Description
AGENT 0x1 Agents.
ACTIVE 0x2 Physical objects.
Flag Mask Description
PASSIVE 0x4 Non-physical objects.
SCRIPTED 0x8 Objects containing any active script.
Scripted Not Scripted
Physical 10 (ACTIVE|SCRIPTED) 2 (ACTIVE)
Non-Physical 12 (PASSIVE|SCRIPTED) 4 (PASSIVE)