Unofficial LSL Reference

[[user:sei:llsensor_research]]


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

user:sei:llsensor_research [2015-07-04 19:36 SLT]
sei typo
user:sei:llsensor_research [2015-08-22 13:03 SLT] (current)
sei typo
Line 1: Line 1:
-^ llSensor flag ^ Types of objects that can be detected (with their llDetectedType^ +This table summarizes the various types of objects that every combination of flags for $lfn[llSensor] and $lfn[llSensorRepeat] is able to detect. Combinations of $lct[AGENT],​ $lct[ACTIVE] and $lct[PASSIVE] without $lct[SCRIPTED] are straightforward. $ct[SCRIPTED] can only be combined with $ct[PASSIVE]. 
-| 0 | Function silently fails (no event is triggered) | + 
-| $ct[AGENT] (1) | $ct[AGENT]`|$ct[ACTIVE]: ​agent not sitting ​in an object\\ $ct[AGENT]`|$ct[PASSIVE]: agent sitting in an object, but not on ground+The right column indicates the type that $lfn[llDetectedType] returns for the kind of detected object indicated in that row. It has nothing to do with the parameter passed to $fn[llSensor],​ even if the constants are common. Blame LL for the confusion this causes ;) 
-| $ct[ACTIVE] (2) | $ct[ACTIVE]:​ unscripted ​physical objects that are moving\\ $ct[ACTIVE]`|$ct[SCRIPTED]physical ​objects with active scripts (*), or scripted physical objects that are moving.\\ $ct[PASSIVE]`|$ct[SCRIPTED]: ​non-physical objects with active scripts (*) | + 
-| $ct[AGENT]`|$ct[ACTIVE] (3) | Includes everything that $ct[AGENT] and $ct[ACTIVE] detect separately. | +$lfn[llSensorflag ^ Types of objects that this flag can detect ^ What\\ $lfn[llDetectedType]\\ returns ​
-| $ct[PASSIVE] (4) | Detects only the objects that $ct[ACTIVE] doesn'​t detect.\\ $ct[ACTIVE]physical ​non-moving unscripted objects.\\ $ct[ACTIVE]`|$ct[SCRIPTED]physical ​non-moving objects with an inactive script (*).\\ $ct[PASSIVE]: non-physical unscripted objects.\\ $ct[PASSIVE]`|$ct[SCRIPTED]non-physical objects with an inactive script (*)+| $ct[AGENT] (1) | • Agents not sitting on an object (i.e. either sitting on ground, or not sitting at all). | $ct[AGENT]`|$ct[ACTIVE] ​
-| $ct[AGENT]`|$ct[PASSIVE] (5) | Includes everything that $ct[AGENT] and $ct[PASSIVE] detect separately. | +::: | • Agents ​sitting ​on an object ​(but not on ground). | $ct[AGENT]`|$ct[PASSIVE] | 
-| $ct[ACTIVE]`|$ct[PASSIVE] (6) | Includes every object (everything that $ct[PASSIVE] and $ct[ACTIVE] detect separately) | +| $ct[ACTIVE] (2) | • Unscripted ​physical objects that are moving. | $ct[ACTIVE] | 
-| $ct[AGENT]`|$ct[ACTIVE]`|$ct[PASSIVE] (7) | Includes every object and agent (everything that each flag detects separately) | +::: | • Physical ​objects with active scripts (*), or scripted physical objects that are moving. ​$ct[ACTIVE]`|$ct[SCRIPTED] ​
-| $ct[SCRIPTED] (8) | Like $ct[ACTIVE] but excludes unscripted physical objects.\\ $ct[PASSIVE]`|$ct[SCRIPTED]non-physical objects with an active script (*).\\ $ct[ACTIVE]`|$ct[SCRIPTED]: ​physical ​objects with active scripts (*), or scripted physical objects that are moving. | +::: | • Non-physical objects with active scripts(*) | $ct[PASSIVE]`|$ct[SCRIPTED] ​
-| $ct[AGENT]`|$ct[SCRIPTED] (9)\\ $ct[ACTIVE]`|$ct[SCRIPTED] (10)\\ $ct[AGENT]`|$ct[ACTIVE]`|$ct[SCRIPTED] (11)  | Same as $ct[SCRIPTED]. The $ct[AGENT] and $ct[ACTIVE] flags have no effect when combined with $ct[SCRIPTED]. | +| $ct[AGENT]`|$ct[ACTIVE] (3) | Includes everything that $ct[AGENT] and $ct[ACTIVE] detect separately. | See above. |  
-| $ct[PASSIVE]`|$ct[SCRIPTED] (12) | $ct[PASSIVE]`|$ct[SCRIPTED]: ​non-physical ​scripted objects\\ $ct[ACTIVE]`|$ct[SCRIPTED]: physical scripted objects ​+| $ct[PASSIVE] (4) | Detects only the objects that $ct[ACTIVE] doesn'​t detect. ​|| 
-| $ct[AGENT]`|$ct[PASSIVE]`|$ct[SCRIPTED] (13)\\ $ct[ACTIVE]`|$ct[PASSIVE]`|$ct[SCRIPTED] (14)\\ $ct[AGENT]`|$ct[ACTIVE]`|$ct[PASSIVE]`|$ct[SCRIPTED] (15) | Same as $ct[PASSIVE]`|$ct[SCRIPTED]. The $ct[AGENT] and $ct[ACTIVE] flags have no effect when combined with $ct[SCRIPTED]. |+::: | • Physical ​non-moving unscripted objects. ​$ct[ACTIVE] | 
 +::: | • Physical ​non-moving objects with an inactive script(*) $ct[ACTIVE]`|$ct[SCRIPTED] | 
 +::: | • Non-physical unscripted objects. ​$ct[PASSIVE] | 
 +::: | • Non-physical objects with an inactive script(*) | $ct[PASSIVE]`|$ct[SCRIPTED] ​
 +| $ct[AGENT]`|$ct[PASSIVE] (5) | Includes everything that $ct[AGENT] and $ct[PASSIVE] detect separately. | See above. | 
 +| $ct[ACTIVE]`|$ct[PASSIVE] (6) | Includes every object (everything that $ct[PASSIVE] and $ct[ACTIVE] detect separately).  | See above. ​
 +| $ct[AGENT]`|$ct[ACTIVE]`|$ct[PASSIVE] (7) | Includes every object and agent (everything that each flag detects separately). | See above. ​
 +| $ct[SCRIPTED] (8) | Like $ct[ACTIVE] but excludes unscripted physical objects. |
 +::: | • Non-physical objects with an active script(*) $ct[PASSIVE]`|$ct[SCRIPTED] ​
 +::: | • Physical ​objects with active scripts (*), or scripted physical objects that are moving. ​| $ct[ACTIVE]`|$ct[SCRIPTED] ​
 +| $ct[AGENT]`|$ct[SCRIPTED] (9)\\ $ct[ACTIVE]`|$ct[SCRIPTED] (10)\\ $ct[AGENT]`|$ct[ACTIVE]`|$ct[SCRIPTED] (11)  | Same as $ct[SCRIPTED]. The $ct[AGENT] and $ct[ACTIVE] flags have no effect when combined with $ct[SCRIPTED]. ​|
 +| $ct[PASSIVE]`|$ct[SCRIPTED] (12) | • Non-physical scripted objects (with scripts active or not). | $ct[PASSIVE]`|$ct[SCRIPTED] ​
 +::: | • Physical ​scripted objects ​(with scripts active or not). | $ct[ACTIVE]`|$ct[SCRIPTED] | 
 +| $ct[AGENT]`|$ct[PASSIVE]`|$ct[SCRIPTED] (13)\\ $ct[ACTIVE]`|$ct[PASSIVE]`|$ct[SCRIPTED] (14)\\ $ct[AGENT]`|$ct[ACTIVE]`|$ct[PASSIVE]`|$ct[SCRIPTED] (15) | Same as $ct[PASSIVE]`|$ct[SCRIPTED]. The $ct[AGENT] and $ct[ACTIVE] flags have no effect when combined with $ct[SCRIPTED]. ​|| 
 +| 0 | Function silently fails (no event is triggered) ||
  
 (*) Active script: a script with an active $lfn[llSetTimerEvent],​ $lfn[llSensorRepeat],​ $lfn[llListen] (no matter if the listen is disabled by $lfn[llListenControl]),​ $lfn[llTarget],​ $lfn[llRotTarget] and possibly more, or actively executing code at the time of scanning (e.g. in a tight loop, in $lfn[llSleep],​ etc.) (*) Active script: a script with an active $lfn[llSetTimerEvent],​ $lfn[llSensorRepeat],​ $lfn[llListen] (no matter if the listen is disabled by $lfn[llListenControl]),​ $lfn[llTarget],​ $lfn[llRotTarget] and possibly more, or actively executing code at the time of scanning (e.g. in a tight loop, in $lfn[llSleep],​ etc.)
  
-Although not tested, presumably $lct[AGENT_BY_LEGACY_NAME] works like $ct[AGENT] with respect to the types of objects detected.+Although not tested, presumably $lct[AGENT_BY_USERNAME] works like $ct[AGENT] with respect to the types of objects detected.