Jump to content
Sign in to follow this  
gundy

Get group member ID

Recommended Posts

How do I retrieve the group member ID of a given unit? When I input "player" into the watch window of the debug console it returns:

B Alpha 1-1:1 (Gundy)

In this case I am the first member in the group (indicated by the number one behind the colon). How can I retrieve that number?

Probably something really simple, but just cannot figure it out.

Thanks & Best Regards Gundy

---------- Post added at 23:12 ---------- Previous post was at 22:01 ----------

Just found out how, CBA has a nice function for it:

[player] call CBA_fnc_getGroupIndex;

Returns "1".

Edited by Gundy

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×