theghost Posted August 1, 2011 Posted August 1, 2011 hi, I made a mission,A pair of Apache helicopters are in on hold Somewhere, I want them to reach and respond after a unit destroyed Somewhere. How I do it? The 147 Squadron commander "The Goring Ram"
Druid_ Posted August 1, 2011 Posted August 1, 2011 Not quite sure what you mean, you want them to leave the hold and then head off in the direction of the destroyed unit? If so you will first need to set an orbit at the waypoint where you want your apache to hold & tick the box flag number in the stop condition of the orbit. In your triggers you can then set that same flag number to true when the unit is destroyed. Thats the easy part. If you want them to head off to any destroyed units then you are going to have to create multiple waypoints over all of the units you want the apache to cover. Then at the waypoint after the orbit you will have to set multiple switch waypoint commands based on a bunch of different flags in the switch waypoint start condition. These flags must be set in your trigger section by ONCE UNIT DEAD a FLAG TRUE 5, ONCE UNIT DEAD b FLAG TRUE 6 and so on. i7-7700K : 16Gb DDR4 2800 Mhz : Asus Mobo : 2TB HDD : Intel 520 SSD 240gb : RTX 2080ti: Win10 64pro : Dx10 : TrackiR4 : TM Warthog : ASUS ROG SWIFT PG348Q
miguelaco Posted August 1, 2011 Posted August 1, 2011 (edited) Set a stop condition for orbit task on user flag activation. Activate flag with a trigger of type: ONCE -> UNIT DEAD(unit) -> FLAG ON(flagId) Once the unit is dead, flag x will be true and orbit task will end. Your Apaches will continue their flight plan. P.D: Druid always fast to the rescue!! Edited August 1, 2011 by miguelaco
theghost Posted August 1, 2011 Author Posted August 1, 2011 Thanks for fast answers I'll try,I hope I got If not? I'll bring an example Thanks:) The 147 Squadron commander "The Goring Ram"
theghost Posted August 1, 2011 Author Posted August 1, 2011 Not working,File Attachedtest.miz The 147 Squadron commander "The Goring Ram"
Druid_ Posted August 1, 2011 Posted August 1, 2011 (edited) on orbit click on STOP CONDITION. tick the is user flag box and place a 1 in the is user flag number box, place another tick after the number for true. Change your first trigger condition to TIME MORE 30 to test it properly (Apache should orbit for 30 secs) should work Edited August 1, 2011 by Druid_ i7-7700K : 16Gb DDR4 2800 Mhz : Asus Mobo : 2TB HDD : Intel 520 SSD 240gb : RTX 2080ti: Win10 64pro : Dx10 : TrackiR4 : TM Warthog : ASUS ROG SWIFT PG348Q
theghost Posted August 1, 2011 Author Posted August 1, 2011 I did what you told me and still they are standing still The 147 Squadron commander "The Goring Ram"
Druid_ Posted August 1, 2011 Posted August 1, 2011 OK. Sorry busy doing other stuff at same time, got it working. I can't post the miz for you as I have not got patch 1.1.09 installed besides its best you learn by doing it yourself. At Waypoint 0 you need to set a speed other than zero, I changed it to 90. I also changed the altitude at WP 0 to 200. Then change orbit type to circle (its currently race-track) and increase orbit altitude to 100ft. That should work fine. i7-7700K : 16Gb DDR4 2800 Mhz : Asus Mobo : 2TB HDD : Intel 520 SSD 240gb : RTX 2080ti: Win10 64pro : Dx10 : TrackiR4 : TM Warthog : ASUS ROG SWIFT PG348Q
theghost Posted August 1, 2011 Author Posted August 1, 2011 I'm sorry that I Driving you crazy ,I'll try again The 147 Squadron commander "The Goring Ram"
Druid_ Posted August 1, 2011 Posted August 1, 2011 (edited) Not at all, I have the advantage of tinkering with the mission editor for some time now. A lot of it is trial and error. Change this, change that & try again. May I suggest that maybe you download a few other peoples missions (avoid Speeds) and open them up in the Mission Editor and look at whats happening. Its not easy to read someone elses missions but you never know you might pick up an idea or two as well as answer some future questions/problems. Thats how I started... As always glad to help out a fellow miz builder, let me know how you get on with the above fixes. Edited August 1, 2011 by Druid_ i7-7700K : 16Gb DDR4 2800 Mhz : Asus Mobo : 2TB HDD : Intel 520 SSD 240gb : RTX 2080ti: Win10 64pro : Dx10 : TrackiR4 : TM Warthog : ASUS ROG SWIFT PG348Q
theghost Posted August 1, 2011 Author Posted August 1, 2011 yessssssssssssssssssss It works great Cool. Thank you for your assistance If you ever need help to attack targets I'll be there for you :) The 147 Squadron commander "The Goring Ram"
theghost Posted August 2, 2011 Author Posted August 2, 2011 Now,after it works Is there a way or command to tell the helicopter to hover without moving from his place? The 147 Squadron commander "The Goring Ram"
miguelaco Posted August 2, 2011 Posted August 2, 2011 Try orbit task with radius=0. Cannot tell if it works, tough.
Speed Posted August 2, 2011 Posted August 2, 2011 Now,after it works Is there a way or command to tell the helicopter to hover without moving from his place? Circular orbit, speed = 0, altitude = whatever you want. Helo should hover. At least, it did last I checked. Intelligent discourse can only begin with the honest admission of your own fallibility. Member of the Virtual Tactical Air Group: http://vtacticalairgroup.com/ Lua scripts and mods: MIssion Scripting Tools (Mist): http://forums.eagle.ru/showthread.php?t=98616 Slmod version 7.0 for DCS: World: http://forums.eagle.ru/showthread.php?t=80979 Now includes remote server administration tools for kicking, banning, loading missions, etc.
theghost Posted August 2, 2011 Author Posted August 2, 2011 That's it, Everything works great Thanks The 147 Squadron commander "The Goring Ram"
Recommended Posts