Experience
Work with experience permissions, information, and persistent data.
What do you want to do?
llRequestExperiencePermissions(key agent, string name)Requests permission from the specified agent to participate in the experience. These permissions are persistent and apply grid-wide across all scripts in the experience, automatically triggering experience_permissions or experience_permissions_denied.list llGetExperienceDetails(key experience_id)Returns a list of details for the specified experience_id, formatted as [string experience_name, key owner_id, key experience_id, integer state, string state_message, key group_id].key llCreateKeyValue(string k, string v)Starts an asynchronous transaction to create a key-value pair (k and v) associated with the script's experience. Returns a key query handle for the dataserver event. Fails with XP_ERROR_STORAGE_EXCEPTION if the key already exists.Reference
16 topic entries
Badges
Kind
integer llAgentInExperience(key agent)ReturnsTRUEif the specified agent is in the experience and the experience can run in the current region/location; returnsFALSEotherwise.functionX (Requires an experience)key llCreateKeyValue(string k, string v)Starts an asynchronous transaction to create a key-value pair (k and v) associated with the script's experience. Returns a key query handle for the dataserver event. Fails withXP_ERROR_STORAGE_EXCEPTIONif the key already exists.functionX (Requires an experience)key llDataSizeKeyValue()Starts an asynchronous transaction to request the used and total data storage allocated for the experience. Returns a key query handle for the dataserver event.functionX (Requires an experience)key llDeleteKeyValue(string k)Starts an asynchronous transaction to delete the key-value pair associated with key k in the experience. Returns a key query handle for the dataserver event.functionX (Requires an experience)list llGetExperienceDetails(key experience_id)Returns a list of details for the specified experience_id, formatted as[string experience_name, key owner_id, key experience_id, integer state, string state_message, key group_id].functionX (Requires an experience)string llGetExperienceErrorMessage(integer error)Returns a text description of the specified experience error code, or a description ofXP_ERROR_UNKNOWN_ERRORif the error is invalid.functionX (Requires an experience)key llKeyCountKeyValue()Starts an asynchronous transaction requesting the total count of keys in the experience data store. Returns a key query handle for the dataserver event.functionX (Requires an experience)key llKeysKeyValue(integer first, integer count)Starts an asynchronous transaction to retrieve count keys from the experience data store starting at the zero-based index first. Returns a key query handle for the dataserver event. Fails withXP_ERROR_KEY_NOT_FOUNDif out of bounds.functionX (Requires an experience)key llReadKeyValue(string k)Starts an asynchronous transaction to read the value associated with key k in the experience. Returns a key query handle for the dataserver event. Fails withXP_ERROR_KEY_NOT_FOUNDif the key does not exist.functionX (Requires an experience)integer llReplaceAgentEnvironment(key agent_id, float transition, string environment)Replaces the region and parcel environment seen by the specified agent_id as part of an experience, transitioning the settings over transition seconds. PassingNULL_KEYor an empty string for environment restores defaults.functionX (Requires an experience)llRequestExperiencePermissions(key agent, string name)Requests permission from the specified agent to participate in the experience. These permissions are persistent and apply grid-wide across all scripts in the experience, automatically triggeringexperience_permissionsorexperience_permissions_denied.functionX (Requires an experience)integer llSetAgentEnvironment(key agent_id, float transition, list params)Sets an individual agent's environmental settings using the attributes in params over a duration of transition seconds. Must be used as part of an experience; passing an empty list removes overrides.functionX (Requires an experience)integer llSitOnLink(key agent_id, integer link)Forces the avatar specified by agent_id (who must be participating in the experience) to sit on the sit target of the prim indicated by link. If occupied, searches down the linkset for an available sit target. Returns an integer.functionX (Requires an experience)key llUpdateKeyValue(string k, string v, integer checked, string original_value)Starts an asynchronous transaction to update the key k to value v inside the experience datastore. If checked isTRUE, the update fails withXP_ERROR_RETRY_UPDATEunless the existing value matches original_value.functionX (Requires an experience)experience_permissions(key agent_id)Triggered when the agent specified by agent_id approves an experience permissions request (interactively or automatically if previously approved).eventexperience_permissions_denied(key agent_id, integer reason)Triggered when the agent specified by agent_id denies experience permissions, or when permission is blocked for other reasons (specified by the error code reason).event
No matching entries. Try a different term or filter.