I have bits and pieces (from reading here), of what I need to do.
What I eventually want to do, is create a random number, 0 or 1 and set dammage to a group of civilians to that number. So basically, at the start of a mission either all the civilians are alive or dead.
I have created a group of civilians, and in the leader set init to 'grpCiv1 = Group This'.
For now, I am not randomizing the 0 or 1, I am just try to kill them all the time.
So,
In init.sqs I have:
"_x setdamage 1" foreach units grpCiv1;
This gives an error on mission load talking about string, expected code.
So, I create a radio trigger calling script that has the same line in it, but nothing happens when I activate the radio.
Can anyone help me out?
Thanks!