Skip to content
lsl.devlsl.devLSL Dev

llAgentInExperience

functionRequires an experience
Function syntax
integer llAgentInExperience(
  1. key agent// UUID of the avatar in the same region to query.
);
Returns
integer
Energy
10

Determines whether or not the specified agent is in the script’s experience.

Returns an integer that is TRUE if the agent is in the experience and the experience can run in the current region.

How to use
integer result = llAgentInExperience(NULL_KEY);
  • Agent must be over a parcel that has the Experience allowed or FALSE is returned with Land Scope Experience compiled scripts.
Example 1
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");
}
}
}
Original wiki source

Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.