On a touch event, it looks like llDetectedKey is how I figure out who touched the prim. Is this true?
On the llListen function, the doc says I can leave ID blank, but I dont see a way to do that without getting an error. Can someone point me in the right direction? Essentially I'm trying to catch an event where anyone can touch something, present a dialog box to that person, and then listen for the answer and take an action.
I have it working for me, but I'm not sure if it's the best way (see below):
integer CHANNEL = 24601; // Default Listen Channel
default
{
state_entry() {
llListen(CHANNEL, "", llDetectedKey(0), ""

}
touch_start(integer total_number) {
llDialog(llDetectedKey(0), "This picture will display any of the following Zodiac signs. Please select one.", ["Scorpio", "Taurus", "Virgo", "Libra", "Pisces", "Sagittarius", "Capricorn", "Gemini", "Leo", "Aquarius", "Aries", "Cancer"], CHANNEL);
}
listen(integer channel, string name, key id, string message) {
llSetTexture(message, 2);
llSay(0, message);
}
}