Being commander of a T80, clicking on the map tells your crew in yellow command instructions to move to that specific location.
I'm working on a simple command engine with a dialog and use onmapsingleclick to move 'move/target' markers around the map for two groups that the the player can control while being commander of the tank.
However, my onmapsingleclick overrides the standard move command for the tank. Clicks on the map keep repositioning the markers. I added a trigger to override the move markers onmapsingleclick by creating a new onmapsingleclick when a marker has been moved.
In this last onmapsingleclick eventhandler I need to put the instructions to tell the driver of my tank to drive to the locotion corresponding to my clicking on the map.
Some possible solutions would seem te be:
(driver T80_1) move _pos
T80_1 move _pos
(commander T80_1) move _pos
(player) doMove _pos
(driver T80_1) commandMove _pos
But these combinations do not seem to work, I think I've tried all combinations of unit, doMove/move/commandMove and positions, but they all fail to move the tank (with me as commander). Often a command like "group move to .." is given in green letters, but the tank is not moving, or sometimes the driver jumps out of the tank and runs to the appointed loction.
Is it possible to recreate the internal move commands (yellow letters) for a vehicle with a trigger? What should the command be?
If you think you know, please answer, but also test your idea first, because I don't think there is an easy solution here.
SideWinder