AvatarKeyScript
De DigiWiki.
I know some scripts require avatar key input...and most of the time, you don't know what the avatar's key you're looking for is! So here's a basic script to get you rolling.
default { touch_start(integer number) { llOwnerSay("The key to who touched me is: " +(string)llDetectedKey(0)); } }
Here is the exact same basic script except in collision form...great for finding the key of an object.
default { collision_start(integer number) { llSay(0, "The key to who (or what) hit me is: " +(string)llDetectedKey(0)); } }