LlDetectedKey

From InWorldz Wiki
Jump to: navigation, search

Scripting Wiki

InWorldz Functions | LSL Functions | Bot / NPC Functions | Events | Bot Events | Types | Operators | Constants | Flow Control | Glossary

Function: key llDetectedKey( integer NUMBER);

PURPOSE: Returns the UUID of detected object or avatar number. SYNTAX: llDetectedKey(0);

One Parameter
NUMBER: Index of the avatar/object touching the prim.
Returns
UUID of object or avatar that was detected


Important Notes



Important Issues - View All - Search Mantis for related Bugs


Examples

default{

touch_start( integer num_detected){
if( llDetectedKey(0) == llGetOwner()) {llOwnerSay( "Touched by Owner");} 
else {llOwnerSay( "Only the owner can touch this object");}
} 
}

General Notes

See Also

 

Functions
llDetectedGroup
Events
touch_start
touch
touch_end
collision_start
collision
collision_end



Need more Info? - Try the LSLWiki or the Second Life LSL Portal.