Jump to content

Rivvern

Members
  • Posts

    439
  • Joined

  • Last visited

Everything posted by Rivvern

  1. Everything seem to work fine. Here is the code if anyone is interested. Use this in your lua file and then load it after MIST in the mission. Be sure to set up the units and trigger zones to match the lua file.. If someone got a better idea, please let me know. Note. I did not set up a delay for the newRoute, mostly because i dont know how. I havent encountered any issues so far. For creating F10 menus and sub menus with spawnable units. --creating menu local _spawn = missionCommands.addSubMenuForCoalition(coalition.side.BLUE, "Spawn") local _airtargets = missionCommands.addSubMenuForCoalition(coalition.side.BLUE, "Air targets", _spawn) local _seatargets = missionCommands.addSubMenuForCoalition(coalition.side.BLUE, "Sea targets", _spawn) --spawnables --_airtargets missionCommands.addCommand("Spawn 1xMiG-21",_airtargets,function() do local gp = mist.cloneInZone('1xMiG-21', {'zone1','zone2','zone3','zone4'}) local newRoute = mist.getGroupRoute('1xMiG-21', true) newRoute[1].x = gp.units[1].x newRoute[1].y = gp.units[1].y mist.goRoute(gp.name, newRoute) trigger.action.outTextForCoalition(coalition.side.BLUE, "MiG-21 detected", 5) end end,nil) --_seatargets1 missionCommands.addCommand("CV 1143.5 Admiral Kuznetsov",_seatargets,function() do local gp = mist.cloneInZone('kuznetsov', {'ships1','ships2','ships3'}) local newRoute = mist.getGroupRoute('kuznetsov', true) newRoute[1].x = gp.units[1].x newRoute[1].y = gp.units[1].y mist.goRoute(gp.name, newRoute) trigger.action.outTextForCoalition(coalition.side.BLUE, "CV 1143.5 Admiral Kuznetsov detected", 5) end end,nil) Credits to Grimes!
  2. After rearm i couldn't deploy the RB04. Only warning light was TILS.
  3. Grimes. Im trying to figure out what you mean but not having any luck. Where do i place the newRoute.[1].x = gp.units[1].x newRoute.[1].y = gp.units[1].y This gives me an error expecting a name at the newRoute line. missionCommands.addCommand("Armed Speedboat",_seatargets,function() do local gp = mist.cloneInZone('armedspeedboat', 'ships1') local newRoute = mist.getGroupRoute('armedspeedboat', true) newRoute.[1].x = gp.units[1].x newRoute.[1].y = gp.units[1].y mist.goRoute(gp.name, newRoute) end end,nil)
  4. Ok, i tested the following code. Doesnt work. But i do wonder if i understood your instructions correctly. How does this look to a you? DOESNT WORK missionCommands.addCommand("Spawn TEST",_airtargets,function() local newGroup = mist.cloneInZone('1xMiG-21', {'test'}) local newRoute = mist.getGroupRoute('1xMiG-21', true) trigger.action.outTextForCoalition(coalition.side.BLUE, "TEST", 5) mist.goRoute(newGroup, newRoute) end,nil) EDIT!: Ok hold your horses. The following code seem to work! The only issue is like you mentioned Grimes, that the aircraft goes to the initial position of the template aircraft. WORKS! missionCommands.addCommand("Spawn TEST2",_airtargets,function() do local gp = mist.cloneInZone('1xMiG-21', 'test') local newRoute = mist.getGroupRoute('1xMiG-21') mist.goRoute(gp.name, newRoute) end end,nil)
  5. Thanks! Will try this approach. :thumbup:
  6. How can i use the CloneInZone so the aircraft group keeps its current task?
  7. I used Daws weather to download the current weather and then removed all wind and turbulence.
  8. Bug report: Trying to use CTLD with true slingloading. If you arent veeeery gently the line will tear. Its not like the stock cargoes. Also another strange bug. After the line has been teared the helicopter looses fuel in some way. Like it got a hole in the fuel tank. You know anything about this?
  9. Thanks for quick answer!
  10. Been trying to use the following function. virtual_awacs_name = "awacs", It works for AI, but not for players. Ive tried different aproaches. Setting awacs in my callsign, group name etc. but no luck. Is it broken or am i doing it wrong?
  11. I want to be able to spawn in random enemy fighter aircraft with the task to search and engage in zone. Been using the command below with great success. Ive created one flight per spawn location/altitudeHighorLow/Aircraft type/groupsize1or2. mist.cloneGroup ('1xMiG-21', true) When adding more planes i see this is not a good solution as i need to create sooo many planes and triggers. I was thinking i could use mist.cloneinzone to make it a bit better. That way i could only create one aircraft and randomly spawn in different zones. With cloneGroup you set it to use the current task with true. But with cloneInZone i cannot set the true command and the flight will just RTB as soon as they spawn in. mist.cloneInZone('1xMiG-21', true {'zone1', 'zone2', 'zone3', 'zone4', 'zone5', 'zone7', 'zone8'}) Questions 1. What would be a better way to spawn in random type of aircraft at random location. Random flight size? Ready to learn. :) 2. How can i use the CloneInZone so the group keeps its current task?
  12. Great mod. I tend to use it alot. I think i got the automatic weather update working with the string in the situation text. "DAWS_ICAO:(ICAO code):DAWS_ICAO". Thanks!
  13. Thanks! A must for VR users. Would it be possible to use the blue VR mouse instead of the white dot somehow?
  14. Master Arms are struggling with the same issues as 476vfg. Snoopy. Did you come so some kind of conclusion? Is there a workaround for the current version? I was about to do some testing, but if i can save some time id be glad.
  15. Also getting those artifacts. When on ground, and when using the fly-by camera.
  16. Master Arms had a go at msn 1 last night. We completed the first two tasks but had to RTB after that due to event time limit. We ran the mission with 2 flights. One flight primary CAS and one flight orbiting and standing by at a pre-set point. This way we didn't end up with a total furball over the target area. We always had a flight on target, one flight ready to engage or were rearming, refueling. Feedback: Thanks! Looking forward to mission 2.
  17. What kind of missions are there? CAP, CAS, strike etc.?
  18. Blueflag + SRS = Win. Having lots of fun! Thank you guys for creating this, i know it is a lot of work. The only problem is the balance. Blue team got more players. So when joining, i wanted to fly the F-5 so had to join team blue, even if id rather join red side for better balance. Though, it doesnt have to be even forces. If you put in a bit of roleplay that bluefor is a stronger force you just need to fly accordingly.
  19. Great update. Looking forward to the F-14.
  20. I actually found some errors in the DCS.log related to slmod. (some idiot installed the wrong version... :) After fixing that it was all good! Thanks for pointing me in the right direction!
  21. I have some problems hosting DCS 2.0 NTTR on our dedicated server. LotATC seem to connect without errors but all i see is a black map. Time is stuck at 00.00.00. Could it be a conflict with Tacview, SLMod or what could be the cause?
  22. Ive had a test mission running for 10 hours. Pretty good i must say! A lot of debris though. The mission is set to use borders. But i get the feeling that the Parachutists that landed behind enemy border triggers enemy CAP and GCI flights. EDIT: Or maybe not. I need to do some more testing and maybe separate the borders a bit.
  23. Like the images below. Be aware that static objects might not work with triggers. Not sure if they fixed it.
×
×
  • Create New...