CougarFFW04 Posted January 7, 2019 Posted January 7, 2019 (edited) Hi Lua scripting Gurrus, I would like to know if it would be possible to build a custon event handler (let's call it S_EVENT_WAYPOINT) that would monitor flight and return for exemple flight name and waypoint when a flight reach his flight plan waypoints. For exemple when flight named "F18" reach his wpt 2 it would return something like {"F18", 2}. I see that scripting documentation propose a template event ( S_EVENT_{{{eName}}} as per the documention) but as I am not very familiar with handler I do not know at all what to do with that and how to build the custom handler. Help is welcome, Thanks Edited January 7, 2019 by CougarFFW04
snowsniper Posted January 7, 2019 Posted January 7, 2019 (edited) take a look on ATME scripting engine. it can use events handlers, but also specific events callback function. ATME is based on callbacks your function will be called when event occurs on specific unit . also waypoint tracking is a basic function in ATME see here , it is very powerfull , just look at reference manual possibilities: https://forums.eagle.ru/showthread.php?t=179992 also V146 and the new EN traduction manual will be soon available ( 2 more weeks ;-) . for standard DCS Scripting, i think it's also possible ( because ATME is only encapsulation of standard DCS scripting) , but you will need quite more lua code lines to do the same logic. if you want a simple exemple lua + miz on your request i can do it with ATME, just ask me. Edited January 7, 2019 by snowsniper i7-10700KF CPU 3.80GHz - 32 GO Ram - - nVidia RTX 2070 - SSD Samsung EVO with LG TV screen 40" in 3840x2150 - cockpit scale 1:1 - MS FFB2 Joystick - COUGAR F16 throttle - Saitek Pro Flight Rudder Pedals
snowsniper Posted January 7, 2019 Posted January 7, 2019 here is an exemple .miz file and lua file.demotrackingWP_withspecificATMEcallback.miztrackingwaypointwithATME.lua i7-10700KF CPU 3.80GHz - 32 GO Ram - - nVidia RTX 2070 - SSD Samsung EVO with LG TV screen 40" in 3840x2150 - cockpit scale 1:1 - MS FFB2 Joystick - COUGAR F16 throttle - Saitek Pro Flight Rudder Pedals
CougarFFW04 Posted January 7, 2019 Author Posted January 7, 2019 (edited) Hi snowsniper, Sounds this is much more than I need... and easy to use... I will have a closer look and try asap :thumbup: Thanks PS: Merci pour la documentation en Français :smartass::smilewink: Edited January 7, 2019 by CougarFFW04
snowsniper Posted January 8, 2019 Posted January 8, 2019 (edited) si tu veux, le manuel V146 en français est prêt lui c'est la trad qu'est pas finie lol;-) le forum en français pour ATME c'est là https://forums.eagle.ru/showthread.php?p=3001633#post3001633 Edited January 8, 2019 by snowsniper i7-10700KF CPU 3.80GHz - 32 GO Ram - - nVidia RTX 2070 - SSD Samsung EVO with LG TV screen 40" in 3840x2150 - cockpit scale 1:1 - MS FFB2 Joystick - COUGAR F16 throttle - Saitek Pro Flight Rudder Pedals
Recommended Posts