Jump to content

Wrecking Crew

Members
  • Posts

    1996
  • Joined

  • Last visited

Everything posted by Wrecking Crew

  1. Makes perfect sense -- that solved the error, thank you! Now to extend the logic to detect the takeoff of specific a/c who are Clients...
  2. Sorry, I had to work on my septic system :-P You can set a flag at a waypoint, too. --- set a flag at a waypoint 'Perform Command', Run Script trigger.action.setUserFlag(71007, 1)
  3. Set up a Triggered Action for Plane A to Perform Command -> Change Waypoint to the airbase waypoint. (and cross your fingers it works :) ) One thing about flags that can get toggled or retriggered every second... using a Time Since Flag may not work because the flag may go Off/False before the time runs down, or if the flag is going On/True every second (this happens with unit_in_zone type Mist functions) then again the flag will not be On/True long enough to reach the time limit. To counter this I use a 'latch' flag that I turn to true when the first flag is detected as true.
  4. Making progress, this code detects the take off of the F-15C and sets the flag and outputs the text but when I quit the mission the following error appears. Why this error? do local function detectClient(event) local airborneUnitName = event.initiator:getName() if(event.id == world.event.S_EVENT_TAKEOFF and event.initiator) then trigger.action.setUserFlag(50003, true) trigger.action.outText(airborneUnitName .. ' just tookoff!', 5) end end mist.addEventHandler(detectClient) end
  5. v154, the Condition of Part Of Group Out Of Zone is Broken when the group is Late Activated. This simple mission should show an alert message at about 44 seconds in, when the armor group crosses the end of the runway. If the group is Late Activate the Condition is ignored and the message appears when it should not; if the group is not Late Activate then the Condition is considered and the message appears at the correct time.
  6. Ahh I thought I deleted that silly photo :-)
  7. Do the number of spaces/tab vs spaces make a difference between working code and not? There are two spaces in the function 'contains' instead of one.
  8. Thanks, had high hopes this would do it. Once this works I will be able to do lots more. This did not work for player F-15C 01 in Single Player test: do local function detectClient(event) local function contains(tbl, val) for _,v in ipairs(tbl) do if v == val then return true end end return false end if(event.id == world.event.S_EVENT_TAKEOFF and event.initiator) then local airborneUnit = event.initiator if(contains({'F-15C 01', 'F-15C 02', 'F-15C 03', 'F-15C 04','M-2000C 21', 'M-2000C 22', 'M-2000C 23', 'M-2000C 24'}, Unit.getPlayerName(airborneUnit))) then trigger.setUserFlag(50003, 1) end end end mist.addEventHandler(detectClient) end The mission is attached. The event is the 4th one down, 'mist.detectClient' The help is appreciated. :beer:
  9. Hi, thanks for taking a look, trying to detect when clients take off. The Flag 50003 is supposed to go True on an S_EVENT_TAKEOFF. I cobbled this code from examples so there may well be something wrong, but it is not throwing errors, testing it in Single Player DCS v1.5.4. I did try different means for setting Flag 50003 to True and 1, and using just 'F-15C 01' for the player name but no joy. Appreciate any help. do local function detectClient(event) if(event.id == world.event.S_EVENT_TAKEOFF and event.initiator) then local airborneUnit = event.initiator if(Unit.getPlayerName(airborneUnit) == {'F-15C 01', 'F-15C 02', 'F-15C 03', 'F-15C 04','M-2000C 21', 'M-2000C 22', 'M-2000C 23', 'M-2000C 24'}) then trigger.setUserFlag(50003, 1) end end end mist.addEventHandler(detectClient) end The Player names are in the 'Pilot' field for the Client a/c.
  10. hi wisper I recommend you re-post this in the Missions & Campaigns -> Mission Builders forum and include 'MOOSE' in the title. I don't use MOOSE so can't help you there.
  11. That group is only going to die once, a Switched Condition event type won't help. I believe that when it gets spawned it comes in under a new group name. What are all of your Continuous Action events for?; these are going to put a load on your mission's performance. I take a regular-events approach to spawning. See this mission (DCS v1.5).
  12. There are a bunch on my site that you are welcome to use, for v1.2 and v1.5.
  13. Sorry, what I mean is that you can create a rectangular zone on the outline of a taxiway. It would take four ground units using the function above.
  14. It is not hard, I just did it for a new mission and followed the Mist Guide for the function mist.flagFunc.units_in_polygon I set these polygon-zone units as Invisible and used five units to define the area. --- Send me your mission and I will put it in.
  15. 1. Don't fly over Red sh!t. :) Striker 2. Stay more than 6,000' to be above the AAA. 3. Stay above 18,000' and MANPADS won't get you, but refer to #1.
  16. I have pretty much the system that jcbak has, I'm running one GTX 980Ti to a Samsung 4K 48" JS9000 TV and love it. I'm getting 60 FPS in DCS v1.5.4. I had two of these cards in my mid-tower Scout II case but they were loud and hot and the single card runs as well if not better. If you want SLI get a full tower case and hydro cooling for the GPUs.
  17. Actually, it is a .wav file in the Riders mission -- see attached. Look for an event about 1/5 down called Switched Condition (Shoot The Taxi Sound). I have used .ogg's too, here is a place that can convert. OOOps, the mission file 'Riders On The Storm' is too big to upload. You can get it from my site, see my sig for the complete link.
  18. You would need to add the music track(s) into the mission and could have it repeat on a timed loop or play at a set time or by some event. I have a 'Riders On The Storm' mission where I play the song when a target is destroyed; the .mp3 was converted to .ogg and loaded in. The sound file(s) can add a lot to the mission file size.
  19. I also had a 5-mission campaign that would start at #3 and auto load the next one depending upon a Red or Blue win, but with the same issues about the Load Mission arguments and mission file names. I do have Teamviewer on my remote server (my home bandwidth is not too good) and will give the password to a few for group Fly-Ins but will then change the password after.
  20. That is the only mod I use in DCS, and it is server side only. A big reason I have it is for permanent banning, my server is Open to all and we don't tolerate Team Killers. There is also Servman but I have not used it. I did what you tried where at the end of a mission the Clients could load some missions by choice through the Radio Menu. Problem I had is that I include a version indicator in my mission names and every time I updated a mission I'd have to go back into the other missions that could call it and update those, too. I never had a problem with crashing due to this though, but that was a couple DCS versions back.
  21. I thought you would not like it... :)
  22. Put Slmod on the server and make your pals admins.
  23. Ooh! I like the Skill setting in this kind of script. (MANPAD Stingers never seem to hit anything...)
  24. I don't know the answer to your question, but I have a suggestion,,, add a Kamaz-43101 to groups 1(A) and to 3©. :)
  25. Not that I am aware of. Here's an idea from my work on HAWK HIPIRs AN/MPQ-46 -- these are the Micky Mouse Ears radar that sends a beam to the target that the missile uses the reflection to guide to the target. These radar antenna track 360° azimuth and ~80° elevation to follow the target. LOL I don't know if this radar actually tracks the target in DCS,,, but anyway, there would have to be limits built into its elevation range.
×
×
  • Create New...