Ranger79 Posted November 27, 2013 Posted November 27, 2013 Any LUA guys out there good with MIST? Could someone make some tutorial videos on the basics and some examples for us NON-LUA-inclined flight sim enthusiasts? [sIGPIC][/sIGPIC] Ranger79 OEF/OIF Veteran YouTube Channel Twitch Channel Mods, Missions, & Tutorials: Operation Piercing Fury Campaign Ranger79's Object Pack ISIS CrisIS Campaign Mission Editing Video Series
Grimes Posted November 27, 2013 Posted November 27, 2013 Mist is just a library of lua functions. All of the functions utilize features of the scripting engine or basic lua functions to perform a given action. Some of the actions directly impact the game by giving new orders to AI or easily displaying a custom message to only A-10C pilots and no-one else. The other functions and DBs are there to be used within scripts for whatever you can come up with. There aren't any video tutorials that I know of. However there is a wiki and plenty of people on the forums to answer questions you may have. List of functions: http://wiki.hoggit.us/view/Mission_Scripting_Tools_Documentation#List_of_Functions http://wiki.hoggit.us/view/Scripting_Engine_Introduction http://wiki.hoggit.us/view/Scripting_Documentation_Guide 1 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
Ranger79 Posted November 28, 2013 Author Posted November 28, 2013 Mist is just a library of lua functions. All of the functions utilize features of the scripting engine or basic lua functions to perform a given action. Some of the actions directly impact the game by giving new orders to AI or easily displaying a custom message to only A-10C pilots and no-one else. The other functions and DBs are there to be used within scripts for whatever you can come up with. There aren't any video tutorials that I know of. However there is a wiki and plenty of people on the forums to answer questions you may have. List of functions: http://wiki.hoggit.us/view/Mission_Scripting_Tools_Documentation#List_of_Functions http://wiki.hoggit.us/view/Scripting_Engine_Introduction http://wiki.hoggit.us/view/Scripting_Documentation_Guide Roger that, I read all the threads, I understand the basics, just need to get my feet wet putting it all together to make it work properly. I am close, but missing a few elements. [sIGPIC][/sIGPIC] Ranger79 OEF/OIF Veteran YouTube Channel Twitch Channel Mods, Missions, & Tutorials: Operation Piercing Fury Campaign Ranger79's Object Pack ISIS CrisIS Campaign Mission Editing Video Series
ENO Posted November 28, 2013 Posted November 28, 2013 Like what Ranger? Maybe having another layman explain a few critical concepts might be of some use. I can't explain how to build your own scripts- but I can certainly help walk you through applying those that are already available in a way that is easy to understand. "ENO" Type in anger and you will make the greatest post you will ever regret. "Sweetest's" Military Aviation Art
Ranger79 Posted December 2, 2013 Author Posted December 2, 2013 Testing of the IR Script (Spot function) in SP and MP, seems to work pretty good. Thanks to Bandit and Joyride for the script. I did add the schedule function which seems to have fixed the laser from going off after a limited time period: function SparkleLase(OriginGroupName, TargetGroupName, LCode) local OriginGroup, TargetGroup = Group.getByName(OriginGroupName), Group.getByName(TargetGroupName) local OriginUnits, TargetUnits = OriginGroup:getUnits(), TargetGroup:getUnits() local spots = {} local TargetVec3 = TargetUnits[1]:getPoint() local TargetAdjVec3 = {x = TargetVec3.x, y = TargetVec3.y + 2, z = TargetVec3.z} local status, result = pcall(function () spots['Sparkle'] = Spot.createInfraRed(OriginUnits[1], {x = 0, y = 2, z = 0}, TargetAdjVec3) spots['Laser'] = Spot.createLaser(OriginUnits[1], {x = 0, y = 2, z = 0}, TargetAdjVec3, LCode) return spots end) if not status then env.error('ERROR: ' .. assert(result), false) else if result.Sparkle then local Sparkle = result.Sparkle function KillSparkle() Spot.destroy(Sparkle) end function UpdateSparkleLase() KillSparkle() KillLase() SparkleLase(OriginGroupName, TargetGroupName, LCode) end mist.scheduleFunction(UpdateSparkleLase, {'Group1', 'DET_HELO', 1444}, timer.getTime() + 0.5, 36000) end if result.Laser then local Laser = result.Laser function KillLase() Spot.destroy(Laser) end end end end Called with: SparkleLase('Group1', 'DET_HELO', 1444) Had Mist 3.2 running as a DO SCRIPT at Mission Start Sample Video showing the script in action: [sIGPIC][/sIGPIC] Ranger79 OEF/OIF Veteran YouTube Channel Twitch Channel Mods, Missions, & Tutorials: Operation Piercing Fury Campaign Ranger79's Object Pack ISIS CrisIS Campaign Mission Editing Video Series
rassy7 Posted December 3, 2013 Posted December 3, 2013 Ranger, I am just barely walking into the world of LUA and the MIST functions but are you saying there is a way to essentially "script" a laser or IR pointer on and off? I only ask because it's an issue I've been trying to make work for a long time within ME and triggers but haven't been able to. I want to use the Huey to fly over an area at night and while using NVG's, spot an "FAC" targeting a group of enemy infantry with an IR pointer. The Huey doesn't have functionality to communicate with an actual JTAC so I was going to force the issue. This is actually preferred anyway but I couldn't find a way to make the IR pointer turn on and off. Do you think this is possible? 1 The State Military (MAG 13) [sIGPIC][/sIGPIC] SHEEP WE-01 AV-8B BuNo 164553 VMA-214 Col J. “Poe” Rasmussen http://www.statelyfe.com Specs: Gigabyte Z390 Pro Wifi; i9-9900K; EVGA 2080 Ti Black; 32GB Corsair Vengeance LPX DDR4; Samsung 970 EVO Series M.2 SSD; WIN10; ASUS VG248QE; CV-1 and Index Modules: A-10C; AV8B; CA; FC3; F-5; F-14; F-18; F-86; HAWK; L-39; P-51; UH1H; NTTR; Normandy; Persian Gulf
Cibit Posted December 3, 2013 Posted December 3, 2013 rassy you can contact JTAC with huey:music_whistling: http://forums.eagle.ru/showpost.php?p=1930069&postcount=25 i5 8600k@5.2Ghz, Asus Prime A Z370, 32Gb DDR4 3000, GTX1080 SC, Oculus Rift CV1, Modded TM Warthog Modded X52 Collective, Jetseat, W10 Pro 64 [sIGPIC][/sIGPIC] Adding JTAC Guide //My Vid's//229th AHB
rassy7 Posted December 3, 2013 Posted December 3, 2013 Thanks Cibit. I came across that one myself. That mod really should be made standard. I was hoping to find a way to make a mission for people without requiring a mod, for now at least. I'm also intrigued at the idea of scripting this because for this particular mission, the pointer would be more of a "we know what the enemy is and generally where, but want to know where it is at this second" rather than the standard "what do you have for us" type. I just really need to learn LUA, ha ha. The State Military (MAG 13) [sIGPIC][/sIGPIC] SHEEP WE-01 AV-8B BuNo 164553 VMA-214 Col J. “Poe” Rasmussen http://www.statelyfe.com Specs: Gigabyte Z390 Pro Wifi; i9-9900K; EVGA 2080 Ti Black; 32GB Corsair Vengeance LPX DDR4; Samsung 970 EVO Series M.2 SSD; WIN10; ASUS VG248QE; CV-1 and Index Modules: A-10C; AV8B; CA; FC3; F-5; F-14; F-18; F-86; HAWK; L-39; P-51; UH1H; NTTR; Normandy; Persian Gulf
Recommended Posts