Hey guys,
so, I (with the help of chatGTP) created this script:
As you can see, it has lots of action.outText functions for error handling and this is where I´m lost. The ONLY messages I get are the ones at the top where it shows that the script and the submenus loaded properly and the "Menü-Callback erreicht:" Messages which is down at the last for-loop.
What this script SHOULD do is spawn a unit from a template placed in the ME (and yes, these templates are placed and correctly named) 5nm ahead of the player who calls the option from the F10 menu. But instead, nothing happens.
My guess is that mist.utils.getPlayerName somehow doesn´t work as intended and that the script doesn´t run further. The DCS.log doesn´t have any error messages about this in it either.
Now asking all of you LUA-wizards, where did I turn wrong? What am I missing? I feel like the script itself is robust and SHOULD work and it´s a really dumb obvious error somewhere that I can´t identify. Mind you while I know basic coding in C++ and Pyhton, also object orientated, I´m not THAT proficient in LUA.
And just to state the obvious here, of course the script is loaded in the mission (hence I wouldn´t get the options to click in the first place) and MIST and Moose in their current versions are loaded BEFORE that.