-
Posts
1996 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by Wrecking Crew
-
Go to the Briefing panel to see the mission's Start Time. Your Ramp Start Waypoint 0 should have the same Start time or you will be delayed from being able to fly the mission. You can add time to another aircraft group's WP0 Start to cause it to Activate at that time in the mission; this is a method of Late Activation.
-
Script to detect any client at altitude ?
Wrecking Crew replied to Wrecking Crew's topic in Mission Editor
Stonehouse - I looked at the flak code and that uses spherical zones. I need a set altitude anywhere on the map. Chump - Your script is working in the attached mission. But I want to use the unit names from my global table 'aircraftClientBlueNames'; I am doing other things with it. When I try to use my table in your script nothing is returned, maybe because I'm not calling it correctly or because it only contains the unit names from its source of 'mist.DBs.humansByName'. The content of 'aircraftClientBlueNames' is like: 'test' 'test #001' I added a Radio F10 command to display the content. Can you please take a look at my mission? Your script is in the Continuous Action event. Detect Altitude 220N0a.miz -
No, it lets you check the values of the flags. In some cases I will increment a flag to show a 'score'. Like if I have ten targets then I'll increment Flag 10000 by 10 for each target destroyed. Ten targets = 100 points. Then you can use the ME's Define Mission Goals - I haven't used this feature much, rather I code in the scoring and determine the win for Blue or Red using events, with scripting where I need it. You are talking about the "'" feature that shows everyone's kills and deaths, and the scores associated with those categories. Sorry, I don't know how to capture that.
-
single player mission / show only
Wrecking Crew replied to Lenux's topic in User Created Missions General
Say, Lenux, Try something if you would. With that AI group of 3, on the first waypoint set up an Advanced Action for the group to do aerobatics. Maybe that will get them to turn on their smoke. I have not used that feature, so no idea if it will work. -
Here is an example of displaying flag values. This can be triggered with an event or using the radio menu - === -- Displaying Flag Values With Text Messages -- Use a Do Script Action (does not require Mist) - local msg = {} msg[#msg + 1]='Blue All Points Flag 10000 value = ' msg[#msg + 1]=trigger.misc.getUserFlag('10000') msg[#msg + 1]='. \n' msg[#msg + 1]='Blue Vehicles In Zone Points Flag 20000 value = ' msg[#msg + 1]=trigger.misc.getUserFlag('20000') msg[#msg + 1]='. \n' msg[#msg + 1]='. \n' msg[#msg + 1]='Blue Aircraft Points Flag 50000 value = ' msg[#msg + 1]=trigger.misc.getUserFlag('50000') msg[#msg + 1]='. \n' msg[#msg + 1]='Blue Heli Points Flag 60000 value = ' msg[#msg + 1]=trigger.misc.getUserFlag('60000') msg[#msg + 1]='. \n' msg[#msg + 1]='Blue Vehicle Points Flag 70000 value = ' msg[#msg + 1]=trigger.misc.getUserFlag('70000') msg[#msg + 1]='. \n' msg[#msg + 1]='Blue Ship Points Flag 80000 value = ' msg[#msg + 1]=trigger.misc.getUserFlag('80000') msg[#msg + 1]='. \n' msg[#msg + 1]='\n' msg[#msg + 1]='Press Pause to freeze the action. \n' trigger.action.outText(table.concat(msg), 6) local msg = {} msg[#msg + 1]='Flag 1 value = ' msg[#msg + 1]=trigger.misc.getUserFlag('1') msg[#msg + 1]='. \n' msg[#msg + 1]='Flag 2 value = ' msg[#msg + 1]=trigger.misc.getUserFlag('2') msg[#msg + 1]='. \n' msg[#msg + 1]='. \n' trigger.action.outText(table.concat(msg), 6) ===
-
To control your wingmen, aircraft that are in your own flight, use the Radio menu. Press '\' and you will be able to send commands to the Flight, or to wingie #2, #3 or #4. FYI, if you command a wingie (in the F-15C for sure) to Jettison Weapons then they will only jettison their fuel tanks. If you want your wingman to stop following you then command it to Go To -> Route.
-
CCRP with Autolase not working in 2.0
Wrecking Crew replied to Tango777's topic in DCS: A-10C Warthog
Flying my A-10C in the most recent v2 last night, I turned the Laser Latch On to lase for some Harrier guys. After maybe 15-20 minutes of me lasing the laser turned off on its own. After that when I pressed the laser button the laser would only stay on for about 5 seconds. In the TGP the 'L' laser status indicator would flash as normal and the 'T' character to the right would switch to 'L' but for only 5 seconds, then the flashing 'L' went steady and the right hand 'L' reverted back to 'T'. I turned Laser Latch to Off and tried to manually lase but got the same short 5 second firing. I switched through the Pointer and Both modes but could not keep the laser on. I left the laser off for more than 5 minutes thinking maybe it was in an over-temp condition but that did not help. Me thinks we have a bug... -
Overview of popular scripts, libraries & frameworks?
Wrecking Crew replied to JLX's topic in Mission Editor
Hi, JLX Check out the Mission Resource page on the Wrecking Crew Projects site for the Flags and Mist examples files. -
single player mission / show only
Wrecking Crew replied to Lenux's topic in User Created Missions General
Hi, Linux, See if this works. There is one Client that you can join. See if you can command your two wingmen to turn on their smoke - use the '\' for the Radio. I looked for a setting to turn on the smoke for the M-2000 AI group but did not find one. Lenux 157C0a.miz -
single player mission / show only
Wrecking Crew replied to Lenux's topic in User Created Missions General
You can add wingman to a group. You should be able to add two aircraft to your Player/Client group for three aircraft. Give them all smoke pods and AFAIK there is a radio flight command to turn on smoke. FYI - this kind of question can go into the Mission Builders Corner. -
Script to detect any client at altitude ?
Wrecking Crew replied to Wrecking Crew's topic in Mission Editor
Thank you, guys! Stonehouse, yes, i use the flak stuff often in my missions. I will take a look at that. Chump, wow, I'm surprised that i got as close as I did. I'm an expert in ancient VB, and LUA and Python are a bit of a struggle to me. Ill give this a go. The new mission's objective will be triggered by the altitude that a client climbs up to. -
Script to detect any client at altitude ?
Wrecking Crew replied to Wrecking Crew's topic in Mission Editor
Thanks, Chump, I appreciate the extra set of eyeballs on the code above. Fixing 'altitude' did not make it work, though. Does anyone have an example to point to that will return the altitude of an aircraft? -
I need help to get a script working that will detect any client at a defined altitude. The client unit names are in the table called 'aircraftClientBlueNames' (this 'aircraftClientBlueNames' part works). I don't get errors with this Detect Altitude code, but it is not returning the outText. This is set up on a Continuous Action with no Conditions and Action of Do Script. TIA. -- code.Load Client Detect Altitude 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(aircraftClientBlueNames) do local altitude = 2500 -- meters local airborneUnitName = uName if(contains(aircraftClientBlueNames, airborneUnitName)) then local pos = unit:getPosition().p local height = land.getHeight({x = pos.x, y = pos.z}) if pos.y - height > alt then -- return true trigger.action.setUserFlag(50008, true) trigger.action.outText('Blue Client ' .. airborneUnitName .. ' is at 2500 meters altitude!', 5) end end end end
-
The Unit List now shows Units, Unit Type and Unit ID. This is too much information. The Unit List is not in the same order as the units in the group. The Unit ID is unnecessary. The Unit Name is 90% useless, with entries like 'Unit #111'. Please go back to the previous Unit List that shows the Group Name with the Number Of Units in the group.
-
I'll add to this. The recent upgrade has disabled the Erl Sis mission, which we have been playing multiplayer since last Friday. Glad to see there is a focus on a cause. Mission and logs attached - lots of log errors. The server can hardly load it and the clients cannot. In single player there is a stutter every 3-4 seconds.
-
I just put up the Tanks vs Tanks 04 mission, in v1.5.
-
I'm pretty sure the current cockpits replaced the old bungee with a cell phone holder.
-
My site.. Wrecking Crew Projects
-
Possible to have labels off by default but be able to turn them on?
Wrecking Crew replied to Jamesp1's topic in DCS 2.9
I suggest asking this in the Mission Builders forum, under Missions and Campaigns. There may be a scripting solution. It's a good question. -
TUTORIAL - Running and editing scripts without restarting the game
Wrecking Crew replied to Pikey's topic in Mission Editor
Thanks, Pikey, See my PM -
TUTORIAL - Running and editing scripts without restarting the game
Wrecking Crew replied to Pikey's topic in Mission Editor
Hi, Pikey, I would appreciate any more info you can give on Lua Projects and editing simple scripts while the game is running. I've watched the video a few times and set up the MOOSE_Framework and MOOSE_Missions, as well as a mission development folder. Using the Eclipse Lua LDT, I made Lua Projects for these, but I did not see a way to edit a Lua Project or delete them to rebuild them, so now I am downloading and starting over. As an example of my immediate goal, I want to edit a script that detects aircraft clients and be able to test changes as I go. This script is already in the mission in a Do Script. I want to make improvements to detect clients in any blue plane, and make changes in an If line to eliminate the '-- do nothing' line that follows. This is an example of my script: [size="1"]-- script.appendAircraftClientNames do aircraftUnitTypes = {'F-15C', 'AJS37', 'M-2000C', 'MiG-21Bis'} -- aircraftUnitTypes = {'[blue][plane]'} 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 uData.type == 'F-15C' or uData.type == 'AJS37' or uData.type == 'M-2000C' or uData.type == 'MiG-21Bis' then if(contains(aircraftUnitTypes, uData.type)) then if(contains(aircraftClientNames, uName)) then -- do nothing else table.insert(aircraftClientNames, uName) end end end end[/size] Also, that log viewer looked pretty nice, plus any tips you have to pass along - like your mention of restarting the mission to see if changes work.