Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Group acceess examples

Deacon Dimsum
Registered User
Join date: 6 Apr 2006
Posts: 7
05-14-2006 15:29
I am not looking for a complete script here. The Wiki has no examples of the llDetectedGroup or the llSameGroup functions. Can someone please post a few simple true false checks usinig these? Examples relating to doors or teleporters would be prime.
Thanks.
Nepenthes Ixchel
Broadly Offended.
Join date: 6 Dec 2005
Posts: 696
05-14-2006 20:37
You'll be disappointed. The group functionality in LSL is severly lacking.

CODE

//Only listen to instructions from people who's active group is the same as the item's group

listen (integer channel, sting name, key id, string message)
{
if (llSameGroup(id)==FALSE ) {return;}
llSay(0,"Someone in my group said \""+message+"\"";);
}


If you could explain what you want in more detail, peopel migth be able to help a bit more.