ItHadToComeToThis Posted May 13, 2022 Share Posted May 13, 2022 Given I have been on an extended break and only just returned. Have we obtained any way for a hud to check what group you have active?. Link to comment Share on other sites More sharing options...
Rolig Loon Posted May 13, 2022 Share Posted May 13, 2022 If you are wearing the HUD, it is set to whatever group you have active at the moment. That's true for any attachment. The HUD can be scripted to tell you the UUID of the group. From there, it could open the group page and you could get the group name. 1 Link to comment Share on other sites More sharing options...
ItHadToComeToThis Posted May 13, 2022 Author Share Posted May 13, 2022 9 minutes ago, Rolig Loon said: If you are wearing the HUD, it is set to whatever group you have active at the moment. That's true for any attachment. The HUD can be scripted to tell you the UUID of the group. From there, it could open the group page and you could get the group name. That could work. I want my hud to check if people are in a certain group and give them rewards if they are. Link to comment Share on other sites More sharing options...
Rolig Loon Posted May 13, 2022 Share Posted May 13, 2022 17 minutes ago, ItHadToComeToThis said: I want my hud to check if people are in a certain group and give them rewards if they are. Then the only extra step is to have your HUD query their HUD, prompting it to ask what group it has active. You don't really even need to know the name of the group. All your HUD needs to know is whether their HUD's group UUID matches yours. 1 Link to comment Share on other sites More sharing options...
ItHadToComeToThis Posted May 13, 2022 Author Share Posted May 13, 2022 50 minutes ago, Rolig Loon said: Then the only extra step is to have your HUD query their HUD, prompting it to ask what group it has active. You don't really even need to know the name of the group. All your HUD needs to know is whether their HUD's group UUID matches yours. Sorry I wrote that wrong. I want the hud they are wearing to check if they are in xxxx group and only give rewards if they are in the group. If they are wearing any other group then no. Link to comment Share on other sites More sharing options...
Rolig Loon Posted May 13, 2022 Share Posted May 13, 2022 Even easier. When you write the HUD script, store the group UUID into it as a coded constant. Then just ask the HUD to compare it's own group UUID with that stored constant. If they match, you're wearing the correct group tag. 2 Link to comment Share on other sites More sharing options...
Quistess Alpha Posted May 14, 2022 Share Posted May 14, 2022 Perhaps not useful in this specific scenario, but I keep forgetting OBJECT_GROUP_TAG exists, which can allow for more specificity than just the active group, but also what role the avatar has in the group. 3 Link to comment Share on other sites More sharing options...
ItHadToComeToThis Posted May 14, 2022 Author Share Posted May 14, 2022 Super!. Thank you for your responses. After not having coded for quite some time I'm finding that I have to shake the rust off 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now