Imsu Posted September 5 Share Posted September 5 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 More sharing options...
Frionil Fang Posted September 5 Share Posted September 5 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. 1 1 Link to comment Share on other sites More sharing options...
Imsu Posted September 5 Author Share Posted September 5 Agh that’s great I didn’t know you could direct a regionsay to a specific avatar so that sounds like a perfect workflow. Thank you so much! Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now