I want to create a script that changes state when an owner (or authorized user) leaves an area.
I can easily script a change state if the owner (or authorized user) comes within sensor range. But, if i simply mod the script so that if the detected AV is not the owner, then, it would change state whenever it detected any av who wasn't the owner, as opposed to detecting when the owner (or authorized user leaves). I guess I can make the sensor make a list of whos on the property and check if the owner is in that list, and, take action if the owner is not in the list of sensed AVs. I'm not exactly sure how to check a list for the presence of a specific AV, but, but it sure seems possible.
I know could use the llOverMyLand function to take action if the object owner (or other authorized user) is not over my land (or the object owner's land), but, I want/need to use a sensor in this application for greater versatility.
I'm wondering if theres a simpler way to take action if a specific AV is not in sensor range, without creating a list. Surely, there must be an example of a script performing this function somewhere. If you have an example, or know where to find one, it would be appreciated.