Jump to content

Detector


Shadowfax Bailey
 Share

You are about to reply to a thread that has been inactive for 2322 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

Yes, you could do that by detecting a collision with the floor, using llDetectedKey.  That's probably not the most efficient way to keep track of who enters, though.   In a commercial space, like a shop, most people would put a transparent, phantom collision prim across the doorway or would set a repeating sensor of some kind to detect people every minute or so.  A collision detector in a floor tends to be too sensitive to every little movement.

No matter what sort of detector you use, you'll need to do some filtering.  You won't want to count the same person 15 times during the 5 minutes she's in your area, for example, so you'll want to script a way to ignore multiple collisions.  You may also want to keep a count first-time visitors separate from the count of repeat visitors, which means storing some form of ID for each visitor and then worrying about how much information you can store before the script is in danger of choking on it.  If you save each visitor's full name, you'll run out of memory very quickly.

Then there's the issue of notifying you.  If you expect more than a small number of visitors, you probably don't want to have the script send you an IM every time someone visits.  That can be very annoying (and will cap your mailbox quickly).  It's probably wiser to script your counter to send a daily or weekly summary report, or maybe whenever you have had 25 or 50 visitors.

Take a look at http://wiki.secondlife.com/wiki/User:Rolig_Loon/High-Capacity_Greeter-Counter .  It does not send names of visitors, but illustrates each of the issues I've outlined.  When you write your own script, you'll probably make different choices about how to address them.

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 2322 days.

Please take a moment to consider if this thread is worth bumping.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...