Jump to content
NumbNutsJunior

[SOLVED] Help! countSide or allUnits broken?

Recommended Posts

I was using the command countSide which does not seem to work correctly as once it reaches 2 it just jumped to 0: 

same applies to playableUnits

_playersWest = west countSide allUnits; 
hint str(_playersWest);

Am I missing something, if there is a way to count all living units on a specific team returning a number please let me know

 

 

Share this post


Link to post
Share on other sites

You need to know that shooting 2 friendlies reduced your score so much, the game put you to the "Enemy" side, which is hostile to everyone.

So the command still works, by the time you shot the second one you were no longer part of the "West" side.

 

Add a playerSide check and see how it returns "Enemy" after the second kill.

 

Cheers

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

×