llGetExperienceDetails

From Second Life Wiki
Revision as of 21:04, 8 July 2014 by Strife Onizuka (talk | contribs) (I'm guessing on the types of "state" and "state_message")
Jump to navigation Jump to search

Summary

Function: list llGetExperienceDetails( key experience_id );

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

• key experience_id The ID of the experience to query. Can be NULL_KEY to request information on the script's experience.

Examples

<lsl>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
      }
}</lsl>

Deep Notes

Signature

function list llGetExperienceDetails( key experience_id );