draoth 13 Posted May 26, 2018 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
phronk 898 Posted May 26, 2018 Try this: _allPrisoner=[]; {if(side _x==EAST)then{_allPrisoner pushBack _x;};}forEach allPlayers; _allPrisoner; https://community.bistudio.com/wiki/pushBack 2 Share this post Link to post Share on other sites
draoth 13 Posted May 26, 2018 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