llSetTouch

From Second Life Wiki
Revision as of 07:02, 24 September 2007 by Huney Jewell (talk | contribs) (Let it appear a bit nicer)
Jump to navigation Jump to search
Emblem-important-yellow.png LSL Feature Request
The described function does not exist. This article is a feature request.

Summary

Function: llSetTouch( key id );

This would be a nice function to limit the touch to certain specified avatars.

• key id

Specification

This limits the possibility to touch an object to the passed key id. Useful to prevent simultaneous clicks by different Avatars on the same moment on the same object.

Examples

default
{
 state_entry()
  {
    llSetTouch(llGetOwner()); // only the boss may click!
  }
 touch(integer num_detected);
 { 
   llSay(0, "Hi BOSS"); 
 }
}

Deep Notes

Search JIRA for related Issues

Signature

//function void llSetTouch( key id );