phgeorg Posted July 10, 2020 Posted July 10, 2020 Hello all, I just tried my first MIST LOS lua (attached). It crashes giving the attached message. Any help will be much apprecieted THXRadar Detection Lua1.lua
phgeorg Posted July 11, 2020 Author Posted July 11, 2020 Looks fine to me. Did you load the Mist .lua? ESAc_matador hi, Yes I did. Check screenshot anyway
chromium Posted July 14, 2020 Posted July 14, 2020 you missed the "=" before the {. mist.flagFunc.units_LOS = { unitset1 = {'[u]Rus EW RDR'}, altoffset1 = 1, unitset2 = {'[blue][plane]','[blue][helicopter]'}, altoffset2 = 1, flag = 2, radius = 140000, interval = 10, } 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.
Grimes Posted July 14, 2020 Posted July 14, 2020 you missed the "=" before the {. Yeah don't do that, it will redefine the mist function to that table instead. The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
chromium Posted July 15, 2020 Posted July 15, 2020 Yeah don't do that, it will redefine the mist function to that table instead. wwwops, correct. 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.
chromium Posted July 15, 2020 Posted July 15, 2020 Maybe this, but I didn't remember correctly how works it. mist.flagFunc.units_LOS({ unitset1 = {'[u]Rus EW RDR'}, altoffset1 = 1, unitset2 = {'[blue][plane]','[blue][helicopter]'}, altoffset2 = 1, flag = 2, radius = 140000, interval = 10, }) Should check that before 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