Page 1 of 1
CMO: How to use Lua to realize the route control of weapons which with waypoints
Posted: Wed Mar 15, 2023 2:47 pm
by Firmament
such as the Mald and AGM-158B, I wanted to keep the weapons on their intended course, just as in manual operations: the weapons are assigned and then plan the weapon's course route
Re: CMO: How to use Lua to realize the route control of weapons which with waypoints
Posted: Thu Mar 16, 2023 8:59 am
by KnightHawk75
Firmament wrote: Wed Mar 15, 2023 2:47 pm
such as the Mald and AGM-158B, I wanted to keep the weapons on their intended course, just as in manual operations: the weapons are assigned and then plan the weapon's course route
Do you mean how to set the path during launch via lua, I believe has been added too \corrected recently, to cover non-bol instances like 158B with the use of ScenEdit_AttackContact().
https://www.matrixgames.com/forums/view ... 0#p5069370 <-- follow down to where the additions were made in build 1307.1 for some examples.
If you mean post launch it's a matter of manipulating the right waypoint(s) entries on the weapon-unit's .course tables - but it also "depends" because the ai kinda takes over in terms of speed\alt\etc, though shouldn't be a problem to adjust waypoint lat & lon if that's more what you meant.