Jump to content
Sign in to follow this  
monotone

How to count bodies

Recommended Posts

Hi all.

I'm making a MP mission,I want to define it when certain number of civilians are killed by a faction then that faction lose.

I will put ALICE(Ambient Civilian Module) too,so civilians don't have their name.

How can I count the number of civilian who killed by west/east?

please lend a hand.

Share this post


Link to post
Share on other sites

Maybe try...

Place a trigger around an area and put in the condition field:

(civilian countSide thisList) <1;

If count civilians in the list of the trigger are less than 1, the trigger is avtivated.

Or you place a trigger around an area and activated by civilians.

In the condition field write:

(count thisList) <1

Have a look also at BIS-Wiki.

Hope this helps!

Share this post


Link to post
Share on other sites

Using a trigger may not work together with ALICE if they are spawned and despawned depending on distance to player units. Try tinkering with these variables perhaps.

You could also attach a killed eventhandler to civilians using the ALICE_civilianinit variable found above the linked section and do the bodycount with that :)

Share this post


Link to post
Share on other sites

Thanks Imutep,Using countside seems to be a sweet way If just only I drop ALICE but it can't distinguish "Who killed civilians" so it's hard to use countside for me.

Thanks Hulking Unicorn,I didn't know about eventhandler.

Though it's difficult to understand at once for me,I'll try and learn it.

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
Sign in to follow this  

×