Hi guys. I do afk sex work a lot and I have been searching for something like a proximity sensor that can trigger a few things (like project arousal triggers, sounds, maybe a short animation) if someone is say 1 meter from me, something else if they are closer, etc. But I am new to scripting (I know html & a little php and that is it) and getting very confused by it all. Been searching like crazy and found I can do a float range for the first part but then have no idea how to say trigger a sound and/or an animation if someone is in range. Can anyone help with the basic format? Is there an "if/then/else" sequence for lsl?
I know I can do
float range - .5;
float howoften = 2.0;
but then what do I need to do so that if someone is in that range it does x and if they are in a second range area it does y or does nothing if no one is in range? If they are right next to me, I want to do a small series (like moans, arousal levels, etc).
Thanks for the help!