onMapSingleClick command
Operand types:
command: String
Compatibility:
Version 1.85 required.
Type of returned value:
Nothing
Description:
Define action performed when user clicks in map. Command receives:
_pos array position
_units array selected units
_shift,_alt bool key state
If click is processed, command should return true.
Example:
onMapSingleClick {"SoldierWB" createUnit [_pos,group player];true}
Maybe you could use that somehow.