Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Help with a group

RaveWolf Strauss
Registered User
Join date: 1 Jan 2006
Posts: 53
01-12-2008 23:06
Hello I was hoping someone could help me with this script i want it to only work with same group as doors deeded too .....please help me and thank you in advance for any help.

CODE

// Sliding Door Script
// By Lux Zhukovsky

vector size;
float dimx;
rotation rot;
vector angle;
string id;
integer count;
vector offset;

default
{
state_entry()
{
size= llGetScale();
size.x -= 0.1;
dimx = size.x;
rot = llGetLocalRot();
angle = llRot2Fwd(rot);
offset = dimx*angle;
}

touch_start(integer p)
{
integer x;
vector pos = llGetLocalPos();
for (x = 1; x < 2; x++)
{
llSetPos(pos + x*offset);
llSleep(0.1);
}
offset *= -1;
}
}
Okiphia Anatine
Okiphia Rayna
Join date: 22 Nov 2007
Posts: 454
01-12-2008 23:13
From: RaveWolf Strauss
Hello I was hoping someone could help me with this script i want it to only work with same group as doors deeded too .....please help me and thank you in advance for any help.



If you wrote this and can do scripting yourself (Sounds like you can), then check out llSameGroup.

http://lslwiki.net/lslwiki/wakka.php?wakka=llSameGroup

Use it in conjunction with if/else statements in the touch_start event to get it to work.

If you aren't a scripter, then sorry, thats all the time I had to respond with lol.
_____________________
In-world, I am Okiphia Rayna. This account is an alt, and is the only account I currently have with payment info on-file due to some account cracking that took place. This is a security measure at present, and I may return to the forums as Okiphia Rayna at a later date.

If you need to reach me, IM Okiphia Rayna, not Okiphia Anatine
RaveWolf Strauss
Registered User
Join date: 1 Jan 2006
Posts: 53
01-12-2008 23:18
no thatll work i jus needed a kick in the right direction
Kahiro Watanabe
Registered User
Join date: 28 Sep 2007
Posts: 572
01-13-2008 05:53
You can use llDetectedGroup() in touch_start event:

http://lslwiki.net/lslwiki/wakka.php?wakka=llDetectedGroup

And the objects does NOT need to be deeded to group, jost Setted to group.
Squirrel Wood
Nuteater. Beware!
Join date: 14 Jun 2006
Posts: 471
01-13-2008 23:55
One thing to take into consideration is that members who do NOT have the group active will NOT be able to operate the doors or whatever.

In other words:
This will only work if your currently active group matches the objects group.