@uveso said in Add units to patrol?:
If you hae a route and click on it, then you can't get any data from LUA about the route or what unit is using it.
So you can't copy the data to another unit to follow the patrol.Transporter ferry routes have special c-engine commands to do so.
This could be a way to make this possible in a Ui mod:
Select your follower units and hover the mouse over the patroling unit and press a key.
The keypress will issue a function that reads the unit orders-data from the unit under the mouse cursor
and copy it to the followers.[Edit] hmm you still need a sim mod for this, you can't issue orders from the UI level without changing the order callback function, and this is inside the sim area of the game. (not sure about that, need to test it)
Forgive me, my coding experience is limited to learning to code in QBASIC in the mid-90s. But when I read...
"Transporter ferry routes have special c-engine commands to do so."
... my first reaction is to ask if patrol routes can then be done with these special c-engine commands.