CMO: How to use Lua to realize the route control of weapons which with waypoints

All discussions & material related to Command's Lua interface

Moderators: RoryAndersonCDT, michaelm75au, angster, MOD_Command

Post Reply
Firmament
Posts: 1
Joined: Wed Mar 15, 2023 2:44 pm

CMO: How to use Lua to realize the route control of weapons which with waypoints

Post 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
KnightHawk75
Posts: 1850
Joined: Thu Nov 15, 2018 7:24 pm

Re: CMO: How to use Lua to realize the route control of weapons which with waypoints

Post 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.
Post Reply

Return to “Lua Legion”