Jump to content
Sign in to follow this  
Cheshyr Pontchartrain

Experience keys crippled by lacking functionality

Recommended Posts

Am I missing something, or is there no way to see if an Experience works on the land without asking the user for permissions, and waiting to see if it fails? This is a huge oversight, especially for transporters that need the user to remain in the touch() event until permissions are confirmed.

Before you ask, the function llAgentInExperience() does not solve this problem. It's broken badly, as it returns FALSE if the user hasn't granted permissions. The whole point is to see if the LAND has granted permissions, before we waste time bothering a customer.

See https://jira.secondlife.com/browse/BUG-10195 and https://jira.secondlife.com/browse/BUG-6912 regarding this issue.

Share this post


Link to post
Share on other sites

The easiest thing to do is create a keyvalue you know will exist later:

llCreateKeyValue("ExperienceTest", "Ping!");

Then, whenever you you want to check if your experience is going to work, you could attempt to read the value:

llReadKeyValue("ExperienceTest");

If you get your "Ping!" string back, you know your experience is working.

Otherwise, you'll get back a return value that represents an error, most likely XP_ERROR_NOT_PERMITTED_LAND.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...