Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Casualties Cap: accept multiple sides as input #693

Open
darkChozo opened this issue Nov 25, 2015 · 2 comments
Open

Casualties Cap: accept multiple sides as input #693

darkChozo opened this issue Nov 25, 2015 · 2 comments

Comments

@darkChozo
Copy link
Contributor

It would be helpful if casualties cap accepted an array of sides as input. For example, if you're writing a mission where BLUFOR and INDFOR are on the same side, you might want the mission to end if all BLUFOR and INDFOR units are killed. Currently, the only way to do this is to supply a big array of groups, which is a hassle and creates a maintenance issue.

@mr-bo-jangles
Copy link

Can you not generate that array automatically?

@headswe
Copy link
Collaborator

headswe commented Nov 28, 2015

You could.

_grp = [];
{
if(side __x == west || side __x == indfor) then {_grp pushback _x};
} foreach allgroups;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants