-
Posts
1998 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by Wrecking Crew
-
$02.3 per day since Nov 2010 for my A-10C. Still flying it after all these years. I expect it and the F/A-18 will keep me entertained for many more.
-
Script to detect any client at altitude ?
Wrecking Crew replied to Wrecking Crew's topic in Mission Editor
This is working on a Continuous Action event - do for _, airborneUnitName in pairs(aircraftClientBlueNames) do local detectAltitude = 2200 -- meters local uData = Unit.getByName(airborneUnitName) if uData then local pos = uData:getPosition().p if pos.y >= detectAltitude then trigger.action.setUserFlag(50022, true) trigger.action.outText('Blue Client ' .. airborneUnitName .. ' is at ' .. pos.y .. ' meters altitude!', 5) end end end end And it outputs the text for multiple clients, giving the unit names with altitude, and sets the flag. Does it make sense to run the function on a Mission Start event with an event handler instead of a Continuous Action? I don't want to bog down the mission if there are a number of clients flying, but below the detection altitude. I tried wrapping this ^^^ code with an event handler - see the last Mission Start event in the attached mission. But again, I struggle with the syntax, and wonder if there is even an 'event' that would trigger that approach? Thanks for all the help. This forum and peeps are a great resource! -
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.