Me and my friend are trying to make a Quarry script that assigns a player a target, and when that target is killed, it changes to a different target. This is as far as we've gotten:
_randomtarget = playableUnits; //Multiplayer variant of the script.
_randomtarget = ["q1", "q2", "q3", "q4", "q5", "q6", "q7", "q8"]; //Singleplayer variant of the script.
_target = _randomtarget select (floor (random (count _randomtarget)));
if (side player == civilian) then {hint format["Your target is %1",_target];};
if (_randomtarget !alive) then {hint format["Your target is %1",_target];}; //This bit doesn't work, it's supposed to assign a new target to the player when his/her current target is killed but it doesn't.
Can anyone help?
If you can, thank you :)