llAgentInExperience
functionRequires an experience
Function syntax
integer llAgentInExperience(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.
integer result = llAgentInExperience(NULL_KEY);Caveats
Section titled “Caveats”- Agent must be over a parcel that has the Experience allowed or
FALSEis returned with Land Scope Experience compiled scripts.
Examples
Section titled “Examples”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"); } }}See also
Section titled “See also”Functions
Section titled “Functions”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.