Jump to content

d0ppler

Members
  • Posts

    494
  • Joined

  • Last visited

Everything posted by d0ppler

  1. Thank you so much for your reply. Is this how it is IRL or only DCS?
  2. Thanks for your answer. Makes sense. I’m not the author of that campaign.
  3. Nice! Go through all the triggers to make sure your Mirage is getting every trigger the F-5 (or one of the other) has. Otherwise it won't work. null Here's my record
  4. Me and my AI wingman are on a CAP mission. No awacs, so we rely on what we see on our own radars. Then my wingman shouts out a contact. Why doesn't that contact appear on my FCR and HSD through L16? Because if I ask my wingman to "engage bandits", then it pops up. Is there something I'm missing? Is it possible if I push button X or Y?
  5. https://www.digitalcombatsimulator.com/en/files/3327920/
  6. ED, I'm begging you, could you please make a deal with the creators of CAM, so those aircrafts are available straight from the bat in the mission editor? These planes adds another dimension to mission making, and when I create missions, I hate to have extra requirements for my mission to work. If the skins/brands adds a problem, then I'm fine with just generic skins, but please make the standard passenger jets available as standard.
  7. If I hypothetically should release a payware campaign, could I use units from CAM and bundle the whole package along with the campaign? I can't find any EULA or any good contact point for the authors of it.
  8. Thanks! Really appreciate it!
  9. I can't seem to find any solutions to this when I search, but my apologies if it has been up before. I'm trying to get the clock bearing to a unit from my player unit's standpoint. I've divided this problem up in several "sub problems" : 1. I need to know the heading of my player (check) 2. I need to know the x/y pos on both my units (check) 3. I need to calculate the angle between those positions (check) 4. I need to be smart in order to put these things into a smart math formula so I can convert this into 1 to 12 (not gonna happen, I'm not smart enough) local function getAngleDeg(p1, p2) return math.atan2(p2.y - p1.y, p2.x - p1.x) * 180 / math.pi; end b747 = Unit.getByName("b747") player = Unit.getByName("player") player_hdg_degrees = mist.getHeading(player, false) * 180 / math.pi; angle = getAngleDeg(player:getPoint(), b747:getPoint()) trigger.action.outText("Plr hdg : " .. player_hdg .. "\nAngle : " .. angle, 1, true) I'm using the mist library, so maybe we have some tricks there? Regards, d0ppler
  10. Thanks for your replies! It makes sense!
  11. I'm working on a mission where sometimes me as the player and my AI wingman needs to refuel in the air. I have a tanker that flies a simple racetrack in the center of the map. For the most part my wingman can do his refueling without acting like a monkey, but sometimes, especially when the tanker flies straight at us, my ACE skilled wingman flies straight into my tanker making a nice mid air explosion taking obviously the tanker as well as himself down to the fishes. Are there any tricks/features I can do in my mission editor I can set on either my wingman or the tanker to mitigate this mid-air crash?
  12. Thank you for pointing that out! Here's what it looks like now, and seems to work. fratricide = {} function fratricide:onEvent(event) local _initname = '' if event.id == world.event.S_EVENT_HIT then _initname = event.initiator:getName() if event.target:getCoalition() and _initname == 'Player1' then if event.initiator:getCoalition() == event.target:getCoalition() then -- you have screwed up trigger.action.setUserFlag('505', true) end end end end world.addEventHandler(fratricide)
  13. I've literally made my first LUA script from scratch! It works, and it looks like this (It's enough to hit a friendly guy to not get mission success, and S_EVENT_HIT served perfectly) fratricide = {} function fratricide:onEvent(event) local _initname = '' if event.id == world.event.S_EVENT_HIT then _initname = event.initiator:getName() if event.initiator:getCoalition() == event.target:getCoalition() then -- you have screwed up trigger.action.setUserFlag('9', true) -- this flag gets true if misconduct of ROE as well. Mission won't be completed trigger.action.outText(_initname .. ' has shot at one of his own', 20) end end end world.addEventHandler(fratricide)
  14. Thanks! I'll try myself first, but please feel free to help me out when you have any spare time I've barely touched lua scripting, but I see now that I must learn at least the basics.
  15. I'm working on a single player mission in a campaign where I don't want the mission to be completed if Player has committed fratricide. So I'm trying to create a trigger when a friendly unit gets shot AND the shooter/instigator is the Player. Can it be done WITHOUT implementing the MOOSE framework?
  16. If I get very close to an aircraft which have their AB on, and I'm watching that aircraft with my TGP, the frames drops rapidly, and then it crashes. Version : Current Open Beta
  17. YAY! I got it to work! Just removed the groupID parameter! EPLRS = { id = 'EPLRS', params = { value = 1 } } You got me with a couple of minutes Thanks anyway!
  18. Exactly how do I enable EPLRS on the KC-135 with lua scripting? It's not possible straight from the bat in the mission editor. I don't know if it's a "bug", but I believe the KC-135 should be able to link up with the other planes through L16 irl. On the picture you'll see the script I've been trying to use, and I suspect I'm doing this COMPLETELY wrong EPLRS = { id = 'EPLRS', params = { value = boolean, groupId = number, } } groupId? The closest thing I could come up with was UNIT ID. Is that correct? Source : https://wiki.hoggitworld.com/view/DCS_command_eplrs
  19. Sorry for necroing, but is this still not implemented? Nothing happens when I press this button in A2A mode in the current version of OB.
  20. Thanks for your brilliant reply, Northstar!
  21. https://www.f-16.net/f-16_armament_article12.html Here we can for example read that the Chiles Block 50 can use them. Why shouldn't "our" version not handle it?
  22. So.. any solution? I'm experiencing the exact same problem. 1.5 years after it was reported.
×
×
  • Create New...