Difference between revisions of "LlAgentInExperience"
Jump to navigation
Jump to search
(Created page with "Category:Experience Tools {{LSL_Function |func=llAgentInExperience |func_desc=Determines whether or not the agent is in the script's experience. |func_footnote=Returns TRUE i…") |
|||
Line 1: | Line 1: | ||
[[Category:Experience Tools]] | [[Category:Experience Tools]] | ||
{{LSL_Function | {{LSL_Function | ||
|inject-2={{LSL_Function/avatar|agent|sim=*}} | |||
|func=llAgentInExperience | |func=llAgentInExperience | ||
|func_desc=Determines whether or not the agent is in the script's experience. | |func_desc=Determines whether or not the specified {{LSLPT|agent}} is in the script's experience. | ||
|func_footnote | |func_footnote | ||
|return_type=integer | |return_type=integer | ||
|return_subtype=boolean | |||
|return_text=that is [[TRUE]] if the {{LSLPT|agent}} is in the experience and the experience can run in the current region. | |||
|p1_type=key | |p1_type=key | ||
|p1_name=agent | |p1_name=agent | ||
|p1_desc= | |p1_desc= to query. | ||
|also_functions= | |also_functions= | ||
*[[llGetExperienceDetails]] | *[[llGetExperienceDetails]] |
Revision as of 18:08, 8 July 2014
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: integer llAgentInExperience( key agent );Caveats
Examples
<lsl>default
{ touch_start(integer total_number) { if(llAgentInExperience(llDetectedKey(0))) { llOwnerSay(llDetectedName(0)+ " is not in my experience"); llRequestExperiencePermissions(llDetectedKey(0), ""); } else { llOwnerSay(llDetectedName(0)+ " is in my experience"); llClearExperiencePermissions(llDetectedKey(0)); } }}</lsl>