Download Mission
Hello everyone,
I'm trying to pick up at the whole scripting scene in Operation Flashpoint and here is my attempt at making a onSingleMapClick-command interface. I believe there are many script sets of this kind; so I'm definitely not going to proclaim that mine is best. 
However, what I am unaware of is the existance of such a script that has:
- A generic approach;
- Multiplayer compatibility;
- Support up to 10 individual 'commanders'.
My inability to find such a script inspired to make this thing. As I said before, I'm probably just reinventing the wheel all over again, but it's also just about having fun with scripting.

I was wondering if anyone could give me some feedback on this. 
Code:
This is a open test release for my 'Dynamic Control' script. I'm releasing this "as is" for now.
############################
### Commander definition ###
############################
Commanders require the following initialization line (# is player number, ranging from 1 to 10):
cmd_p# = group this; this addaction ["Command System", "commandscript.sqs"]
Once a commander dies, the next squad member in command will be able to take over.
#########################
### Group ID handling ###
#########################
Units belonging to a certain commander (in this case player 1) require the following ID definition in their
initialization lines (# is group number, once again ranging from 1 to 10):
cmd_p1_inf# = group this;
cmd_p1_mechinf# = group this;
cmd_p1_lighttank# = group this;
cmd_p1_heavytank# = group this;
cmd_p1_gunship# = group this;
cmd_p1_support# = group this;
cmd_p1_ambulance# = group this;
cmd_p1_custom1_# = group this;
cmd_p1_custom2_# = group this;
cmd_p1_custom3_# = group this;
cmd_p1_custom4_# = group this;
cmd_p1_custom5_# = group this;
cmd_p1_custom6_# = group this;
The different names help identifying the squad in the control dialog. Example: 'cmd_p2_inf1' will be displayed
in the command interface of player two as "Infantry 2".
The custom labels can be set by providing their respective variable names with corresponding strings. For
example:
cmd_custom1_label = "VIP";
cmd_custom2_label = "Special Convoy";
cmd_custom3_label = "General Guba";
########################
### Tracking markers ###
########################
Tracking markers are defined as follows:
'cmd_p1_inf1' will be tracked by the marker named 'cmd_p1_inf1_ref'.