Editors Depot - Mission Editing and Scripting > Arma2 - Editing/Scripting Multiplayer

AddScore for side

(1/1)

Iceman77:
How can I add to a sides point total without adding score to the sides players? If that makes any sense. AddScore is working great to add points for players, and thus the side aswell. I just don't want to add points to the players score, but rather just the sides total. And I'd rather use the engines point system, and not some pseudo point distribution method. If possible.

Any help would be appreciated.

This is what I currently use to distribute points to a side. I want to go away from this.

--- Code: ---WEST_SCORE = {{If (Side _x == WEST) Then {_x addScore 1}} ForEach AllUnits};
EAST_SCORE = {{If (Side _x == EAST) Then {_x addScore 1}} ForEach AllUnits};

--- End code ---

savedbygrace:
I realize this is super old but just wanted to throw this thought in there to see if there were any other solutions found for this.

Have you tried to check the score of the side and then adding a score to that variable?

_scoreW = scoreSide west;
_scoreW addScore 10;


Just a shot in the dark.

Navigation

[0] Message Index

Go to full version