Currently for Lua I’m using this : local wp = mission:get_current_nav_index()
And create something like this to check for wp to do certain action:
for _, wp in ipairs({2,4,6,8,10}) do
end
I wonder if there any better method to to this ?
Because when drawing using Auto WP → SimpleGrid the waypoint order is a bit difference rather than drawing waypoint to waypoint and also depend on the terrain so wp order might be different
like 2 below
The same code doesn’t worked the same for these map so I want to find another way to make “action at WP” more flexible. Thanks a lot