Jump to content
Sign in to follow this  
MrXToTheN

How do you get to know the warfare commander by script?

Recommended Posts

Hi,

I'd like to detect which player in a (multiplayer) warfare game is currently the commander.

Any ways on how to do it? Couldn't find anything on the wiki.

Thank you.

Share this post


Link to post
Share on other sites

Are you just playing the standard warfare that comes with arma 2 or a player created version? I know in Warfare BE for example, you just check the map and it tells you.

Share this post


Link to post
Share on other sites
Are you just playing the standard warfare that comes with arma 2 or a player created version? I know in Warfare BE for example, you just check the map and it tells you.

Hi, that's true, but I needed to check it by SQF script.

I found a way. The commander is also the high command leader (rather obvious if you think about it). Therefore I just used:

_commander = hcLeader group player;

Works without a problem.

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  

×