Re: AI count ?
Posted by aggelon on Jan 31, 2014; 12:47pm
URL: http://kodabar-dayz-daizy-single-player-forum.163.s1.nabble.com/AI-count-tp14541p15141.html
Hi dude ;)
Well, the oher formula you gave me works :
For the survivors count : (({alive _x && ( !(_x isKindOf "zZombie_Base")) && side _x == west} count entities "Man")-1)
I added a -1 at the end of this count because our own character is inside the 'survivors' count.
I can't make work the formula for bandits, so my workaround is :
((count allUnits)-({alive _x && ( !(_x isKindOf "zZombie_Base")) && side _x == west} count entities "Man"))
i.e. count all the AI/human units in the game, then subtracts the number of survivors :P
Thanks again, man *\o/*