Global setting of ....ingroup = TRUE
changed(integer change)
{
if (change & CHANGED_LINK)
{
key user = llAvatarOnSitTarget();
key objectowner;
if (user)
{
group = llDetectedGroup(0);
user = llDetectedKey(0);
objectowner = llGetOwner();
if ((user == objectowner)||(group && ingroup))
{
// You sit and are permitted so get controls
llSetStatus(STATUS_PHYSICS, TRUE);
llSetStatus(STATUS_ROTATE_X | STATUS_ROTATE_Y | STATUS_ROTATE_Z, TRUE);
llRequestPermissions(user,PERMISSION_TAKE_CONTROLS);
}
else
{
llSay(0, "Sorry, You do not have permission to drive"
;llUnSit(user);
llPushObject(user, <0,0,1>, ZERO_VECTOR, FALSE);
}
}
This is only the section for permissions, and as I said it works fine for the owner but....
anyone else in group or not is being allowed to sit with no push, and still getting the "Sorry mesage". I know i must have a logic error or something but any help would sure be welcome. Thx in advance!