-
Posts
1933 -
Joined
-
Last visited
About Wrecking Crew
- Birthday 08/04/1954
Personal Information
-
Flight Simulators
DCS
-
Location
Oklahoma
-
Interests
Mission design, hosting
-
Occupation
Retired
-
Website
https://sites.google.com/site/wreckingcrewprojects/home
Recent Profile Visitors
21846 profile views
-
Wrecking Crew started following Pikey
-
Unable to Reuse Parking Space for Second Aircraft
Wrecking Crew replied to edwardsjethro's topic in Mission Editor
Some aircraft have a Takeoff From Ground option. That might help if you have run out of parking spaces. -
In triggers Flag Set Random Value is not random
Wrecking Crew replied to Richrach's topic in Mission Editor
Hi Tippis, folks. I did this, in my clunky way I have five sets of coordinates and want one set chosen randomly, for the first objective. When the objective is complete, another one can be accepted and the next coordinate set is randomly selected from the remaining four. Rinse and repeat. For the set up, Flag 5 is set to a random value between 1 - 5 at mission start. Then scripting will define a dictionary with values {1, 2, 3, 4, 5}. Mission Start: Flag 5 set to a random value from 1-5 Mission Start: Create a "F5Dict", and remove the current value of Flag 5 from the dictionary. Flag 5 value determines the coordinate set (one of five) for the objective -- MS, code.Create F5Dict Flag5Dict = {1,2,3,4,5} do local Flag5Value = trigger.misc.getUserFlag('5') local indexsearch = 0 for index, data in pairs(Flag5Dict) do if (data == Flag5Value) then indexSearch = index end end table.remove(Flag5Dict,indexSearch) end After the first objective is complete, the player can select to attack a second objective from the remaining four values in the dictionary; Flag 75 goes True, so Switched Condition Do Script.. -- SC, Select Next Killbox, F75T do if #Flag5Dict > 0 then local indexRand = math.ceil(math.random(#Flag5Dict)) trigger.action.setUserFlag(5, Flag5Dict[indexRand]) -- remove the new value table.remove(Flag5Dict,indexRand) end end Complete the objective. Rinse & repeat. Credit for the code help goes to Franze Boxcutter Hari 02.lua Boxcutter Hari 29S1g.miz -
Wrecking Crew started following I cant get trigger.misc.getUserFlag to work , Smoke on moving unit , Multiple aircraft in a flight? and 1 other
-
There is an Action for Smoke Marker On Unit.
-
Wow, blast from the past! @Mav87th I use a "Latch" flag approach -- --- System Flags --- --- Latches: do not turn off once set --- Timers: Use for control Example -- Flag 50 goes true and is the Latch flag that will never go false again Flag 506 is the associated Timer flag and can be turned On or Off as needed. Another tip -- for every mission I have a .lua file with all of the notes, scripts, flag assignments, and events. See the attached. edit 20240228 -- updated miz file Confounded 02.lua Confounded Bridge 29C1f.miz
-
Multiple aircraft in a flight?
Wrecking Crew replied to Warlock99's topic in User Created Missions General
Big aircraft don't do well with Groups of more than 1 Unit. Make the first aircraft with its loadout, waypoints, altitude and speed. Then clone it with Cntrl-c -> Cntrl-v. Also, a Client (or Player) can be the 1st Unit in a Group that has wingmen (or wingwomen) but not 2nd, 3rd, etc. -
Perhaps this will help -- --- MS: code.Create & Load Client Tables aircraftClientBlueNames = {} aircraftClientRedNames = {} do local function contains(tbl, val) for _,v in ipairs(tbl) do if v == val then return true end end return false end for uName, uData in pairs(mist.DBs.humansByName) do if(contains({'red'}, uData.coalition)) then if not(contains(aircraftClientRedNames, uName)) then table.insert(aircraftClientRedNames, uName) end end if(contains({'blue'}, uData.coalition)) then if not(contains(aircraftClientBlueNames, uName)) then table.insert(aircraftClientBlueNames, uName) end end end end
-
SkateZilla's utility can Clean and Repair. It can manage up to six DCS installs. Here is my home screen with one DCS Open Beta install.. Here's a post about setting it up ..
-
Yes, @2circle see this DCS utility -- DCS Updater GUI Utility, by SkateZilla --
-
You tried to use the Message To All Seconds as the repeating interval, but that is not what it is for, it is for the time the message is to be displayed. A Repeat Message has to be Initiated and then use a Time Since Flag to repeat it.
-
Thanks guys. I filled in the Manager Options with the path to my .omx file and now my two mods show up on startup.
-
Here is the structure I use for just a couple of mods.. One is of the mod folder structure and target, the other shows OMM when I open it -- I need to go to Recent to find the .omx file. There must be a better way.. ?
-
Here is a way to keep a message up, by repeating it... Shadowlands WC01.miz
-
I cant get trigger.misc.getUserFlag to work
Wrecking Crew replied to Zachc12385's topic in Scripting Tips, Tricks & Issues
Here is an example. It's long ... This is yours -- if trigger.misc.getUserFlag(5),1) == 5 then is missing a "(" like this Flag((5,1) == 5,,,, but I don't know if that actually works local msg = {} msg[#msg + 1]='Welcome to the Witches Hollo mission! \n \n' if trigger.misc.getUserFlag('30000') == 0 then -- All Four Objectives Still Alive -- Blue Counter F30000 is False msg[#msg + 1]='Blue must clear out the Witches Hollo of the Red HQ and three Red Camps. See the Briefing for HQ & camp target coordinates. \n \n' msg[#msg + 1]='Use JTAC Hummers to spot targets and laser designate. \n \n' msg[#msg + 1]='Go Blue! \n \n' msg[#msg + 1]='Blue to win: \n' msg[#msg + 1]='Destory the Red HQ and three camps: East Camp, Central, and West. \n \n' msg[#msg + 1]='See the Radio F10 Menu for mission options including Restart. \n \n' end if trigger.misc.getUserFlag('30000') == 1 then -- Three Objectives Still Alive if trigger.misc.getUserFlag('30101') == 0 then -- RDR VGrp01 HQ Alive msg[#msg + 1]='Very nice Blue pilots -- one camp was destroyed. \n \n' msg[#msg + 1]='Finish the mission objectives. Destroy the Red HQ building! \n' else -- RDR VGrp01 HQ Dead FT 30101 msg[#msg + 1]='Very nice Blue pilots -- the Red Headquarters was destroyed! \n \n' msg[#msg + 1]='Finish the mission objectives -- destroy the three Red camps at Witches Hollo. \n' end end if trigger.misc.getUserFlag('30000') == 2 then -- Two Objectives Destroyed, Two Still Alive if trigger.misc.getUserFlag('30101') == 0 and trigger.misc.getUserFlag('33001') == 0 then -- HQ & Central Camp Alive msg[#msg + 1]='Blue pilots -- destroy the Red Headquarters at Witches Hollo! \n \n' msg[#msg + 1]='The Central Red camp is also operational. \n \n' msg[#msg + 1]='Destroy these two targets to finish the mission objectives. \n' end if trigger.misc.getUserFlag('30101') == 0 and trigger.misc.getUserFlag('33101') == 0 then -- HQ & East Camp Alive msg[#msg + 1]='Blue pilots -- destroy the Red Headquarters at Witches Hollo! \n \n' msg[#msg + 1]='The East Red camp is also operational. \n \n' msg[#msg + 1]='Destroy these two targets to finish the mission objectives. \n' end if trigger.misc.getUserFlag('30101') == 0 and trigger.misc.getUserFlag('33201') == 0 then -- HQ & West Camp Alive msg[#msg + 1]='Blue pilots -- destroy the Red Headquarters at Witches Hollo! \n \n' msg[#msg + 1]='The West Red camp is also operational. \n \n' msg[#msg + 1]='Destroy these two targets to finish the mission objectives. \n' end if trigger.misc.getUserFlag('30101') == 1 then -- HQ Plus One Camp Dead msg[#msg + 1]='Very nice Blue pilots -- the Red Headquarters was destroyed! \n \n' msg[#msg + 1]='Finish the mission objectives -- destroy the last two Red camps at Witches Hollo: \n' if trigger.misc.getUserFlag('33001') == 0 then -- Central Camp Alive msg[#msg + 1]=' Central Camp \n' end if trigger.misc.getUserFlag('33101') == 0 then -- East Camp Alive msg[#msg + 1]=' East Camp \n' end if trigger.misc.getUserFlag('33201') == 0 then -- West Camp Alive msg[#msg + 1]=' West Camp \n' end msg[#msg + 1]='\n \n' end end if trigger.misc.getUserFlag('30000') == 3 then -- Three Objectives Destroyed if trigger.misc.getUserFlag('30101') == 0 then -- HQ Alive msg[#msg + 1]='Blue pilots -- the Red Headquarters building is still operatonal. \n \n' msg[#msg + 1]='Destroy this structure to complete the mission objectives and send the red dogs back to Kaspi! \n \n' end if trigger.misc.getUserFlag('33001') == 0 then -- Central Camp Alive msg[#msg + 1]='Blue pilots -- The Central Red camp is still operatonal. \n \n' msg[#msg + 1]='Destroy this fortification to complete the mission objectives! \n \n' end if trigger.misc.getUserFlag('33101') == 0 then -- East Camp Alive msg[#msg + 1]='Blue pilots -- the East Red camp is still operatonal. \n \n' msg[#msg + 1]='Destroy this fortification to complete the mission objectives! \n \n' end if trigger.misc.getUserFlag('33201') == 0 then -- West Camp Alive msg[#msg + 1]='Blue pilots -- the West Red camp is still operatonal. \n \n' msg[#msg + 1]='Destroy this fortification to complete the mission objectives! \n \n' end end if trigger.misc.getUserFlag('30000') > 3 then -- All Objectives Destroyed msg[#msg + 1]='Blue wins today hooray! Fun flying under the clouds. \n \n' msg[#msg + 1]='All mission objectives are met! \n \n' msg[#msg + 1]='Mop up any remaining Red units around Witches Hollo. \n \n' end trigger.action.outText(table.concat(msg), 25) -
Yep. Had to turn off IC on the Hollo Pointe server for this