Amarok_73 Posted October 13, 2021 Posted October 13, 2021 Hello, I'd like to ask if there's any way to reset/reload/end mission with LUA only, without using the trigger that will do this action? The action itself would be triggered by evend of deleting the mark from the map having specific text in label like "reboot". So far I know how to set the flag with it that will trigger the action defined in the triggers, but I'd like to do it with the LUA code only. Natural Born Kamikaze ------------------------- AMD Ryzen 5 3600, AMD Fatal1ty B450 Gaming K4, AMD Radeon RX 5700 XT, 32 GB RAM Corsair Vengeance LPX, PSU Modecom Volcano 750W, Virpil Constellation Alpha Prime on Moza AB9 base, Virpil MongoosT-50CM3 Throttle, Turtle Beach VelocityOne Rudder.
PravusJSB Posted October 19, 2021 Posted October 19, 2021 It seems (not sure if intended or not) but the net class is now available and usable in the mission scripting not just GUI/Hooks. So yes, you can call the function responsible for restart and mission changes and much more directly from mission code. Creator & Developer of XSAF ::An AI model that wants to kill you, and needs no help from humans. Discord: PravusJSB#9484 twitch.tv/pravusjsb https://www.patreon.com/XSAF https://discord.gg/pC9EBe8vWU https://bmc.link/johnsbeaslu Work with me on Fiverr: https://www.fiverr.com/pravusjsb
Recommended Posts