Jump to content
draoth

Trouble with trying to list every player on a side.

Recommended Posts

I'm trying to count everyplayer that's playing as OPFOR. My counting script does not throw any errors, however the hint script doesn't recognizes _AllPrisoner. Obviously i'm doing something wrong and i hope someone can help me.

 

_allplayers = allPlayers;
_allPrisoner = {if (side _x == east) then {_allPrisoner = _allPrisoner + _x};} forEach _allplayers;

hint format ["Test%1",_allPrisoner ];

 

Share this post


Link to post
Share on other sites
2 minutes ago, phronk said:

Try this:

_allPrisoner pushBack _x;

 

Instead of using _allPrisoner=_allPrisoner + _x;

Thanks man, that did it!

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

×