Hello,
I'm making rally point script (based of many diferent scripts), but I have problem with number of squad leaders (number of variable names).
I have problem with variables SQA ... SQB ... SQC, these variables are variable names of each squad leader. But I never know how many squad leaders I will need (it depends on number of players and so on) so let's say that I have 3 squad leaders (SQA, SQB, SQC) but when they use this script via addAction it will show error message:
"undefined variable sqd in line if ((_unit == SQD) && (r2Cooldown == 1)) exitWith {"
So unless I have all squad leader this error will show up on each use. Script works, but these error messages are annoying. Is there way to solve this? I know there is way by dividing script for each squad leader, but I don't think it is THE WAY. Or is it possible to use variable name in each line such as:
Thanks for any answers,
Kuba