Page 1 of 1

RANDOM PATHS FOR NAVAL OR A/C TO reference points IN EDITOR

Posted: Sun Jan 22, 2017 1:52 am
by BillSirKill
Hi All,
Here's the basics to the question: (In the editor)
1. Start of game teleport of a unit (naval or aircraft) to a zone (defined area).
2. Set random path to either reference point or a defined area from that teleported .

I want to launch a naval unit from point A (which is the teleport on start of game).
This Naval unit is to bombard a land unit.
I want a random path to the launch area.

How do I set up a random path once the unit is teleported to a defined area?

Thanks for the help
Bill

RE: RANDOM PATHS FOR NAVAL OR A/C TO reference points IN EDITOR

Posted: Sun Jan 22, 2017 8:39 am
by Gunner98
If you assign it to a mission (the bombardment area) and the path editor will pick a path. It will be direct but to random spot within the destination area.

B

RE: RANDOM PATHS FOR NAVAL OR A/C TO reference points IN EDITOR

Posted: Sun Jan 22, 2017 5:28 pm
by BillSirKill
Gunner - Thanks...

RE: RANDOM PATHS FOR NAVAL OR A/C TO reference points IN EDITOR

Posted: Mon Jan 23, 2017 6:18 am
by michaelm75au
You can also build a course as a Lua table and add it to the unit .

unit.course = { {LONGITUDE='...', LATITUDE='...'}, {LONGITUDE='...', LATITUDE='...'}, ... }