Difference between revisions of "LlGetExperienceDetails"

From Second Life Wiki
Jump to navigation Jump to search
m (fixed broken lsl formatting)
Line 8: Line 8:
|also_functions=
|also_functions=
*[[llAgentInExperience]]
*[[llAgentInExperience]]
|examples=<lsl>default
|examples=<source lang="lsl2">default
   {
   {
       touch_start(integer total_number)
       touch_start(integer total_number)
Line 22: Line 22:
           // Print nothing if not associated with an XP or info about the associated experience
           // Print nothing if not associated with an XP or info about the associated experience
       }
       }
   }</lsl>
   }</source>
|cat1=Experience
|cat1=Experience
}}
}}

Revision as of 11:23, 11 February 2015

Summary

Function: list llGetExperienceDetails( key experience_id );

Returns a list of details about the experience. This list has 6 components: [string experience_name, key owner_id, key experience_id, integer state, string state_message, key group_id]

• key experience_id The ID of the experience to query.

If experience_id is NULL_KEY, then information about the script's experience is returned. In this situation, if the script isn't associated with an experience, an empty list is returned.

Examples

default
   {
       touch_start(integer total_number)
       {
           key xp = "9170c22b-f445-ea5d-89fa-0f2f1e144f04";
           llOwnerSay(llDumpList2String(llGetExperienceDetails(xp), "\n"));
           // Prints:
           // Linden Realms
           // id
           // status msg
           
           llOwnerSay(llDumpList2String(llGetExperienceDetails(NULL_KEY), "\n"));
           // Print nothing if not associated with an XP or info about the associated experience
       }
   }

See Also

Deep Notes

Signature

function list llGetExperienceDetails( key experience_id );