llAgentInExperience

From Second Life Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Summary

Function: integer llAgentInExperience( key agent );

Determines whether or not the specified agent is in the script's experience.
Returns a boolean (an integer) that is TRUE if the agent is in the experience and the experience can run in the current region.

• key agent avatar UUID that is in the same region to query.

Caveats

  • Agent must be over a parcel that has the Experience allowed or FALSE is returned with Land Scope Experience compiled scripts.
All Issues ~ Search JIRA for related Bugs

Examples

default
{
  touch_start(integer total_number)
  {
    if(llAgentInExperience(llDetectedKey(0)))
    {
      llOwnerSay(llDetectedName(0)+ " is in my experience");
    }
    else
    {
      llOwnerSay(llDetectedName(0)+ " is not in my experience");
    }
  } 
}

See Also

Deep Notes

Search JIRA for related Issues

Signature

function integer llAgentInExperience( key agent );