Difference between revisions of "LlSetTouch"

From Second Life Wiki
Jump to navigation Jump to search
Line 1: Line 1:
[[THIS FUNCTION DOES NOT EXIST]]
'''
LlSetTouch would be a nice function to limit the touch to certain specified avatars.
== THIS FUNCTION DOES NOT EXIST ==


syntax: llSetTouch(key id);


* Proposed Syntax: '''LlSetTouch(key id)'''
This would be a nice function to limit the touch to certain specified avatars.


Note: 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.


''example:''
* Note: This function 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. Can also prevent unauthorized use of an object.


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

Revision as of 06:57, 24 September 2007

THIS FUNCTION DOES NOT EXIST

  • Proposed Syntax: LlSetTouch(key id)

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


  • Note: This function 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. Can also prevent unauthorized use of an object.

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