Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

object permissions

Zizou Aquacade
Registered User
Join date: 15 Feb 2007
Posts: 2
05-09-2007 13:04
hi all,
like to have some hints on how to change permissions of objects from inside a script.

i want make a box, put some stuff inside and then change permissions of all is inside from a script. should be easy but i cant find the way.

thanks for your help
zizou
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
05-09-2007 17:24
While doing what you want to do isn't easy, the reason why it's not easy is easy:

You cannot change the permissions of an object via script.

Sorry :(
_____________________
--AeonVox--

Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms chasing ghosts, eating magic pills, and listening to repetitive, addictive, electronic music.
Zizou Aquacade
Registered User
Join date: 15 Feb 2007
Posts: 2
permissions for a group
05-10-2007 11:40
thanks for the answer

what i need to do is to make a sort of share box to share objects between members of a group, may be im trying to walk on the wrong road.


if anyone has an idea.............
Sys Slade
Registered User
Join date: 15 Feb 2007
Posts: 626
05-10-2007 11:57
From: Zizou Aquacade
what i need to do is to make a sort of share box to share objects between members of a group

You can use llSameGroup or llDetectedGroup to detect if the person clicking or interacting with the box is a member of the group that owns the box and has the group tag active.
Then use llGiveInventory or llGiveInventoryList to give the contents.

CODE

string item="some object";

default{
touch_start(integer touches){
if(llDetectedGroup(0))
llGiveInventory(llDetectedKey(0), item);
}
}


On object properties, under general, hit the set button for the group and select the one you want to share with.
This will fail to send them anything if they don't have the group tag active.
_____________________
Send me the last 4 digits of a valid SSN, I'll verify you are who you say you are, even if you aren't.