So i was working on collapsible bridge idea aside of every thing which luckily going well, i have added a feature to use group detection so if person wearing same group tag as the group key which i have assigned in script its lets you go through other wise its collapse, but am failing on such attempt i tried several approaches but not get any success so far what i have got in to is the object properties group if its match with user group tag its lets you go through just a simplified script for test i can share,
what am expecting is to detect the user group if same as the group key also if its get detected once and passed or failed and user change the group tag its update please do share your suggestion to solve this mystery
key groupKey = "555212fa-dd0a-1960-e694-1da1e6c9a798";
// Define two flags: groupMode and gCollapsing
integer groupMode = TRUE;
integer gCollapsing = FALSE;
default
{
collision_start(integer num_detected)
{
if (llDetectedType(0) & AGENT && !gCollapsing)
{
if (groupMode == TRUE & llDetectedGroup(llSameGroup(groupKey)))
{
// If in the same group
llSay(0, " You are in the same group!");
}
else
{
// If not in the same group
llSay(0, "Failed! You are not in the same group.");
}
}
}
}