Skip to content
lsl.devlsl.devLSL Dev

experience_permissions_denied

event
Event syntax
experience_permissions_denied(
  1. key agent_id,// UUID of the avatar who denied or was blocked from granting permissions.
  2. integer reason// XP_ERROR_* error constant describing why permissions were denied. Values: ExperienceError
) { … }

This event may be generated in many cases:

  • In response to a call to llRequestExperiencePermissions if any of the following is true:
  • The agent does not respond to the experience permission dialog. This will happen after a long delay if the agent is running a viewer which doesn’t understand the request or if the agent has blocked the object.
  • The agent selects “Block Experience” in the experience permission dialog.
  • The agent has previously blocked the experience through another experience permission dialog or through the experience profile.
  • An attachment is asking for permission from an agent other than its owner.
  • The experience cannot run on the region because it is blocked or exceeds the maturity rating of the region.
  • The experience can no longer run:
  • The script has moved to a region where the experience cannot run because it is blocked or it exceeds the maturity rating of the region.
  • The script has moved to a parcel where it is blocked or not allowed.
  • The agent has blocked the experience from the experience profile.
  • The agent has moved to a parcel where the experience cannot run.

The agent has denied experience permission or generated under other cases.

How to use
experience_permissions_denied(key agent_id, integer reason)
{
}
LSL ConstantMessage returned via llGetExperienceErrorMessageDescription
XP_ERROR_NONE0no errorNo error was detected.
XP_ERROR_THROTTLED1exceeded throttleThe call failed due to too many recent calls.
XP_ERROR_EXPERIENCES_DISABLED2experiences are disabledThe region currently has experiences disabled.
XP_ERROR_INVALID_PARAMETERS3invalid parametersOne of the string arguments was too big to fit in the key-value store.
XP_ERROR_NOT_PERMITTED4operation not permittedExperience permissions were denied by the user.
XP_ERROR_NO_EXPERIENCE5script not associated with an experienceThis script is not associated with an experience.
XP_ERROR_NOT_FOUND6not foundThe sim was unable to verify the validity of the experience. Retrying after a short wait is advised.
XP_ERROR_INVALID_EXPERIENCE7invalid experienceThe script is associated with an experience that no longer exists.
XP_ERROR_EXPERIENCE_DISABLED8experience is disabledThe experience owner has temporarily disabled the experience.
XP_ERROR_EXPERIENCE_SUSPENDED9experience is suspendedThe experience has been suspended by Linden Lab customer support.
XP_ERROR_UNKNOWN_ERROR10unknown errorAn unknown error not covered by any of the other predetermined error states.
XP_ERROR_QUOTA_EXCEEDED11experience data quota exceededAn attempt to write data to the key-value store failed due to the data quota being met.
XP_ERROR_STORE_DISABLED12key-value store is disabledThey key-value store is currently disabled on this region.
XP_ERROR_STORAGE_EXCEPTION13key-value store communication failedUnable to communicate with the key-value store, or attempted to create key that already exists
XP_ERROR_KEY_NOT_FOUND14key doesn’t existThey requested key does not exist.
XP_ERROR_RETRY_UPDATE15retry updateA checked update failed due to an out of date request.
XP_ERROR_MATURITY_EXCEEDED16experience content rating too highThe content rating of the experience exceeds that of the region.
XP_ERROR_NOT_PERMITTED_LAND17not allowed to run on this landThe experience is blocked or not enabled for this land.
XP_ERROR_REQUEST_PERM_TIMEOUT18experience permissions request timed outThe request for experience permissions was ignored.
Example 1
13 collapsed lines
// Simple experience watcher
string denied_region = "";
string experience_name = "";
default{
state_entry(){
llRequestExperiencePermissions(llGetOwner(), "");
experience_name = llList2String(llGetExperienceDetails(NULL_KEY), 0);
}
experience_permissions(key agent){
denied_region="";
llOwnerSay("in "+ experience_name);
}
experience_permissions_denied(key agent, integer reason){
denied_region = llGetRegionName( );
llOwnerSay("out "+ experience_name);
}
changed(integer what){
5 collapsed lines
if(denied_region != "" && denied_region != llGetRegionName()){
llRequestExperiencePermissions(llGetOwner(), "");
}
}
}

experience permissions

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.