Jump to content

Detecting Access Card Help


Imsu
 Share

Recommended Posts

Beginner scripter.

Experimenting with something on one of our parcels which is a security gate that requires you to be wearing an ID card of sorts to get through the gate.

Currently it detects the avatar collision with the gate and checks:

1) the user is wearing an item of that name

2) that items creation time is correct


downside to this is that if a similar system was used in another parcel, the same object could be used and just renamed to meet the requirements.

in an effort to make it more secure and unique I was wanting to add a script to the access card that would perform some sort of handshake with the gate upon the avatar collision but after lots of reading I’m still unsure how to implement this.

one caveat I thought of would be that if someone else was in range of the channel being used and also wearing the card it would incorrectly handshake with them instead and then tick all the boxes.

I only have very basic knowledge of llListen and struggling to think of a way around this.

Any ideas or help with this is much appreciated.

Link to comment
Share on other sites

Basic flow idea:

  • bumping with the gate or otherwise interacting with it will send a llRegionSayTo message to the bumping avatar on a chosen channel: llRegionSayTo, when aimed at an avatar, will be heard only by that avatar and their attachments.
  • keycard object has a listening script on that channel which will respond via llRegionSayTo to the sending ID (the gate) with an "I'm ok for this door" message if the message sent by the door matches
  • gate has a listener script that causes it to open when receiving the confirmation message 

Not too many moving parts and things beyond basic listeners, and llRegionSayTo takes care of any unintended object hearing the messages.

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...