Difference between revisions of "Template:LSL Constants Sensor"

From Second Life Wiki
Jump to navigation Jump to search
(moved samples into template)
Line 69: Line 69:
         else if(type == ACTIVE)// = 2
         else if(type == ACTIVE)// = 2
         {
         {
             llSay(0, "I have been struck by a physical object not containing any active script.");
             llSay(0, "I have been struck by a physical object not containing any script.");
         }
         }
         else if(type == PASSIVE)// = 4
         else if(type == PASSIVE)// = 4
Line 85: Line 85:
         else if(type == 10)// SCRIPTED & ACTIVE
         else if(type == 10)// SCRIPTED & ACTIVE
         {
         {
             llSay(0, "I have been struck by a phisical object containing any active script.");
             llSay(0, "I have been struck by a phisical object containing any script.");
         }
         }
         else if(type == 12)// SCRIPTED & PASSIVE
         else if(type == 12)// SCRIPTED & PASSIVE

Revision as of 03:36, 22 May 2010

Flag Mask Description (llDetectedType()) Description (llSensor() and llSensorRepeat() mask)
AGENT 0x1 Agents. Agents.
ACTIVE 0x2 Physical tasks. (Physical objects & agents) Physical objects that are moving or objects containing an active script. Thus, it is using SL server resources now.
PASSIVE 0x4 Non-physical objects. Non-scripted or script is inactive and non-physical or, if physical, not moving. Thus, it is not using SL server resources now.
SCRIPTED 0x8 Objects containing any active script. Objects that has any script, which is doing anything in simulator just now.
llDetectedType() Scripted Not Scripted
Physical 10 (ACTIVE|SCRIPTED) 2 (ACTIVE)
Non-Physical 12 (PASSIVE|SCRIPTED) 4 (PASSIVE)