Jump to content

How to use llReturnObjectsByOwner

Life Camino

Recommended Posts

I'm working on a security relay and I want to be able to both ban an avatar and return their objects in the same step.   There are no examples provided for the command, so I was wondering if someone could tell me how this command should be used for my purposes.  

The security relay is to be deeded to a group on group owned land, so I need the relay to always have the permissions it needs without having to ask every time.  And, once the relay is deeded to a group, I need to be able to reset the script and grant permissions.


Link to comment
Share on other sites

You'll probably get a more complete answer with an example and all, but in case you're stuck waiting for help: It's pretty simple in principle, the main tricky bit is that at state_entry, the script has no inherent way of knowing who reset it, so you have to figure out a way for it to know of whom to request permissions. One way would be to do nothing and have a separate "activation" action -- perhaps touching the object -- and then using the activating agent's key to request perms.

Or, if you're the only one who should be able to grant it permissions, it might have your own key hard-coded. Or have a list of authorized permission-granters, and match that list against llGetAgentList() for the region. 

You will want it to establish permissions as soon as it's reset, not wait until it throws a permissions error, because then it would be too late to find anybody around from which to request perms.

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

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

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.


  • Create New...