Jump to content

Wrecking Crew

Members
  • Posts

    1998
  • Joined

  • Last visited

Everything posted by Wrecking Crew

  1. $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.
  2. 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!
  3. 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.
  4. 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
  5. 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.
  6. 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.
  7. 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) ===
  8. 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.
  9. 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...
  10. Hi, JLX Check out the Mission Resource page on the Wrecking Crew Projects site for the Flags and Mist examples files.
  11. 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
  12. 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.
  13. 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.
  14. 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?
  15. 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
  16. 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.
  17. Are we supposed to upload these zipped crash packages here?
  18. 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.
  19. Show Labels in Multiplayer, add Option to show Group Name Display the Group Name on unit# 1 as an option to Show Labels.
  20. I just put up the Tanks vs Tanks 04 mission, in v1.5.
  21. I'm pretty sure the current cockpits replaced the old bungee with a cell phone holder.
  22. My site.. Wrecking Crew Projects
  23. I suggest asking this in the Mission Builders forum, under Missions and Campaigns. There may be a scripting solution. It's a good question.
  24. mist.DBs.humansByName includes coalition, and type Can I also get plane, helicopter, ship, and vehicle as info?
  25. I am loading Mist at Time More (4), with more scripts at (4+n). I'd like to load Mist, first, and all my scripts and script files with separate MISSION START events, in the desired order. Is that good?
×
×
  • Create New...