I’d like to be able to turn my vehicles and armoured units using double click right mouse button so they face the enemy instead of using the key binding for ‘turn’. So I’ve been experimenting with cmd_doubleclickfight.lua and unit_turn.lua but I can’t seem get it to work, I don’t know how to call a gadget from inside a widget or get cmd_doubleclickfight.lua to see CMD_TURN. Could someone give me a push in the right direction please?
Also, when you right click and drag to select a group of soldiers it draws a bounding box around them. Is there a function call that I could use to return the soldiers positions relative to the bounding box and not the screen, assuming the top left corner of the bounding box is x=0, y=0 for example?