Difference between revisions of "Talk:LlSensor"

From Second Life Wiki
Jump to navigation Jump to search
(New section: All Object Sensor?)
Line 19: Line 19:


:Will do, the table is in a template ([[Template:LSL_Constants_Sensor]]) so that it can be included on llSensorRepeat too. -- [[User:Strife Onizuka|Strife Onizuka]] 15:02, 23 June 2008 (PDT)
:Will do, the table is in a template ([[Template:LSL_Constants_Sensor]]) so that it can be included on llSensorRepeat too. -- [[User:Strife Onizuka|Strife Onizuka]] 15:02, 23 June 2008 (PDT)
== All Object Sensor? ==
Hey, can anyone tell me how to make an llSensor() that will scan for ANY object? For example, both physical and nonphysical, scripted and nonscripted, any combination. I tried combining all the flags (besides AGENT) with bitwise |, but it didn't seem to pick up all objects in range.

Revision as of 08:45, 22 September 2008

If PI/4 is a 45 degree cone: if the cone's axis is 1, does the base have a diameter of 2, or a diameter of ~0.82? --Asha Vultee 12:53, 19 November 2007 (PST)

Strictly speaking, it's not a cone. If you want an idea of what the shape will look like run the following script. -- Strife Onizuka 13:20, 19 November 2007 (PST)
float arc;

default
{
    state_entry()
    {
        llSetPrimitiveParams([PRIM_TYPE, PRIM_TYPE_SPHERE, 0, <0.,1.,0.>, 0.0, <0.,0.,0.>, <0.,arc/PI,0.>]);
    }
}

Agent?

Hey everyone, don't you think the "AGENT" flag should have a description along the lines of "This is used to find avatars only". rather than a blank description? I tried to add it myself, but I'm afraid I'm too newbie to understand the formatting... I couldn't find that particular table.

Will do, the table is in a template (Template:LSL_Constants_Sensor) so that it can be included on llSensorRepeat too. -- Strife Onizuka 15:02, 23 June 2008 (PDT)

All Object Sensor?

Hey, can anyone tell me how to make an llSensor() that will scan for ANY object? For example, both physical and nonphysical, scripted and nonscripted, any combination. I tried combining all the flags (besides AGENT) with bitwise |, but it didn't seem to pick up all objects in range.