Any AI in a group commanded by a player are local to thast players client (I believe)
If its another group, then
have the map click setpos a gamelogic (lets call it tx_moveto)
and public variable a boolean (tx_movenow)
Have your AI group stop at a waypoint 0, with condition: tx_movenow
then script on serverside
tx_movenow = false
~ (random 5)
#START
~2
?(tx_movenow): got "MOVE"
goto "Start"
#MOVE
;;;; setpos the groups move waypoint to the gamelogic
[mygroup, 1]setWpPos (getpos tx_moveto)
~3
tx_movenow = false
goto "START"
when the server receives the boolean pv, the groups Position 1 waypoint will be setpossed to the gamelogic, the boolean condition which was prevented from allowing the group to move will then become true and the troops will move to that position.
I reset the boolean to false again, this will then allow yet another map click to move them again
If the groups only have wp 0 and wp 1, then when you setpos the wp1 again, they will simply move to it
UNTESTED, theory only