Zara Avindar Posted July 12, 2017 Share Posted July 12, 2017 Hi everyone, thank you in advance for your input. I have a tip jar that I scripted, but when the DJ or Hostess leaves the club without logging out of it, they remain logged on until I reset the script. Is there a way to detect when the avatar that's logged into it has left the parcel without using something like the Agent function that keeps scanning for all the avatars on the parcel or region? It seems like such a waste of memory to keep doing that if I already know who the avatar is and just want to keep track of that one remaining on the parcel. It's probably something simple that I'm overlooking, but your input is appreciated. Link to comment Share on other sites More sharing options...
Rolig Loon Posted July 12, 2017 Share Posted July 12, 2017 Start a timer that triggers every minute or so ( it doesn't really need to check any more often than that, probably) and have it check if (llGetAgentSize (person_of_interest) == ZERO_VECTOR) { // person_of_interest is no longer in the region, so kill the script or whatever } 1 Link to comment Share on other sites More sharing options...
Zara Avindar Posted July 13, 2017 Author Share Posted July 13, 2017 Thank you Rolig - I can't believe I didn't even think of that. Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now