Jump to content
Badena

llSensor does not detect objects I rez

Recommended Posts

I just found out that llSensor in a hud I am wearing does not detect objects I rezz, objects belonging to me, created by someone else. Sigh. Surprise, surprise. They are rezzed, not attached. The pages about llSensor dont tell. I probably belong to the species who should not do scripting but I would be very grateful if someone can tell me if that behavior of llSensor is known or if I am too [...fill in the blanks...] . Workarounds are welcome. llGetObjectDetails does not apply since it requires an UUID to sail in the sea of details, and every object is born with a fresh brand new ID which cannot be forseen. Thank you in advance for your comments :)

Share this post


Link to post
Share on other sites

Thank you Wulfie :)

I rezz an object <golf ball launcher> at my position, it is non-physical, phantom tho.

Sensor is  llSensor("", "", PASSIVE|SCRIPTED, 5.0, PI).

The workaround I just found is using llGetParcelPrimCount with PARCEL_COUNT_GROUP.

Share this post


Link to post
Share on other sites
Posted (edited)
2 hours ago, Badena said:

Thank you Wulfie :)

I rezz an object <golf ball launcher> at my position, it is non-physical, phantom tho.

Sensor is  llSensor("", "", PASSIVE|SCRIPTED, 5.0, PI).

The workaround I just found is using llGetParcelPrimCount with PARCEL_COUNT_GROUP.

Try using just SCRIPTED instead of PASSIVE|SCRIPTED.

The wiki page might need some updating since the table doesn't really represent reality. For example, SCRIPTED|ACTIVE will detect certain nonphysical objects.

Edited by Wulfie Reanimator

Share this post


Link to post
Share on other sites
Posted (edited)

The wiki may be inaccurate in several instances because I made a thread about this issue last year. IIRC "PASSIVE" and "SCRIPTED" cannot be returned at the same time now since "PASSIVE" objects are considered unscripted (???). I've since started using functions like llGetObjectDetails() in combination with broader Sensor flags to distinguish objects between scripted, passive, and active as a result.

Edited by Secondary Lionheart
  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...