chromium Posted November 1, 2020 Posted November 1, 2020 Hi, Does anyaone has ever added the A* pathfinding algorithm in lua? I need that to work in a decision making script for AI. Thanks :) Author of DSMC, mod to enable scenario persistency and save updated miz file Stable version & site: https://dsmcfordcs.wordpress.com/ Openbeta: https://github.com/Chromium18/DSMC The thing is, helicopters are different from planes. An airplane by it's nature wants to fly, and if not interfered with too strongly by unusual events or by a deliberately incompetent pilot, it will fly. A helicopter does not want to fly. It is maintained in the air by a variety of forces in opposition to each other, and if there is any disturbance in this delicate balance the helicopter stops flying; immediately and disastrously.
Durham Posted November 8, 2020 Posted November 8, 2020 I remember researching it and thinking it perfectly achievable in lua as the logic is not that hard. Start here. and then you remember you will be using this scripting function to check the surface type of the nodes about the unit https://wiki.hoggitworld.com/view/DCS_func_getSurfaceType to make sure your tank doesn't drive into a lake. First be careful, because ground units are controlled at the group level so even with the controller object working properly, you can have issues with the unit children driving into lakes as they maintain formation. Second, be careful that pushing tasks to a controller sometimes does not give you the immediacy you want, so better to figure out the route and then push it once, rather than endlessly check and push new routes endlessly.
chromium Posted November 8, 2020 Author Posted November 8, 2020 I'm not going to use that for routing, I'll leave DCS to that: I'm going to use that for decisions.You link is going to help anyway, so thanks a lot ! :thumbup: Author of DSMC, mod to enable scenario persistency and save updated miz file Stable version & site: https://dsmcfordcs.wordpress.com/ Openbeta: https://github.com/Chromium18/DSMC The thing is, helicopters are different from planes. An airplane by it's nature wants to fly, and if not interfered with too strongly by unusual events or by a deliberately incompetent pilot, it will fly. A helicopter does not want to fly. It is maintained in the air by a variety of forces in opposition to each other, and if there is any disturbance in this delicate balance the helicopter stops flying; immediately and disastrously.
Recommended Posts