You are currently not logged in! Enter your authentication credentials below to log in. You need to have cookies enabled to log in.
This is an old revision of the document!
integer llSameGroup(key id)
The key of a user or a prim in the same region.
Returns TRUE if the user defined by id has the same group active that the object with this script is assigned to, or deeded to, or if the object of key id is assigned to the same group. Returns FALSE if the user or object is not currently in the same region, or if the assigned group differs.
integer Same = llSameGroup(llGetOwner() ); // Same will be TRUE if the object owner's currently active group is the same as that which the touched prim is assigned to, and the owner is currently in the region.
default { touch_start(integer count) { key UserKey = llDetectedKey(0); if (! lllSameGroup(UserKey) llRegionSayTo(UserKey, 0, "Please activate the correct group in order to use this device"); else llGiveInventory(UserKey, "FreeGift"); } }