Jump to content

Sedlo

DLC Campaign Creators
  • Posts

    2019
  • Joined

  • Last visited

Everything posted by Sedlo

  1. @Toni Carrera, you seem like a keen mission maker, and you are about to fall down the addictive rabbithole known as scripting! This will get you started down the path, and I apologize in advance if it starts to consume a lot of time (it did that for me). OK, you are going to need some scripting to achieve what you are seeking. For the AGM-88 being launched by a specific unit, copy and paste the script below as a "Do Script" command sometime before you need it (make sure to make a condition that the firing unit is still alive). This script will detect when a unit named CHEVY 11 fires an AGM-88. It will also set flag 8000 to become active and increment it's value by 1 each time CHEVY 11 fires a HARM. The flag thing isn't mandatory, it's just a way to keep score, in case you want to use it later. The script also puts a text message up (in this case for 3 seconds. You can change that if you'd like). Make sure you use the UNIT NAME in the script, it won't work with the group name. ******************************************* Handler = {} function Handler:onEvent(event) if event.id == world.event.S_EVENT_SHOT and event.initiator == Unit.getByName('CHEVY 11') then local Weapon_Type = event.weapon:getTypeName() if Weapon_Type == "AGM_88" then flag_value = trigger.misc.getUserFlag('8000') trigger.action.setUserFlag('8000', flag_value + 1) trigger.action.outText('CHEVY 11, MAGNUM!!', 3) end end end world.addEventHandler(Handler) ******************************************** This will get you started. GRIMES and others keep the SSE documentation updated here: https://wiki.hoggitworld.com/view/Simulator_Scripting_Engine_Documentation Try the script above, and then check out the SSE docs, it really opens up the possibilities of DCS.
  2. @mobile83, the cockpit argument for the F-16 battery switch is 510. -1 is off, 0 is BATT, 1 is MAN PWR. You can find all of the cockpit arguments in the clickabledata.lua file which you can find in this directory: C:\Program Files\Eagle Dynamics\DCS World OpenBeta\Mods\aircraft\F-16C\Cockpit\Scripts Using the modelviewer found in C:\Program Files\Eagle Dynamics\DCS World OpenBeta\bin. You can load that up, load the F-16 shape file Cockpit.F-16C.EDM located here: C:\Program Files\Eagle Dynamics\DCS World OpenBeta\Mods\aircraft\F-16C\Cockpit\Shape Once you load that file in the modelviewer, you can move the sliders and see what values correspond with the position of each switch. J'espère que ces informations vous aideront !
  3. @Toni Carrerayou can include them in a "MISSION START" type of trigger. It works well for the simple things, such as gear/flaps/hook/radio channels. But if you're doing complex things (like multiple MFD pages, multiple UFC presses), you need to have them separated by time. I've discovered a workaround/solution that works for me, start in active pause and fire your triggers. Download this mission and give it a go, see if this method works for you. https://www.digitalcombatsimulator.com/en/files/3319457/
  4. Welcome to Sedlo's Case 1 Landing Practice Mission! Download Link:https://www.digitalcombatsimulator.com/en/files/3319457/ Required Modules: DCS F/A-18C Hornet AND the DCS Supercarrier. This mission will help you practice Case 1 Landings on the Super Carrier! The mission starts off in Active Pause and it's important that you do not touch any controls (HOTAS, keyboard, mouse) until the warning message disappears. While it's in Active Pause, the mission will automatically configure your TACAN, ILS, MFDs, Gear, Flaps and Hook for the landing. When the simulation un-pauses, you will find yourself about 4 miles back in the landing configuration. Get on speed as soon as you can. If you want to get graded and LSO support, contact the carrier inbound right away. You won't have to call the see you at 10, but you DO have to call the ball around 3/4 of a mile. I hope that you enjoy the mission!
  5. Welcome to Sedlo's Case 1 Landing Practice Mission! Download Link:https://www.digitalcombatsimulator.com/en/files/3319457/ Required Modules: DCS F/A-18C Hornet AND the DCS Supercarrier. This mission will help you practice Case 1 Landings on the Super Carrier! The mission starts off in Active Pause and it's important that you do not touch any controls (HOTAS, keyboard, mouse) until the warning message disappears. While it's in Active Pause, the mission will automatically configure your TACAN, ILS, MFDs, Gear, Flaps and Hook for the landing. When the simulation unpauses, you will find yourself about 4 miles back in the landing configuration. Get on speed as soon as you can. If you want to get graded and LSO support, contact the carrier inbound right away. You won't have to call the see you at 10, but you DO have to call the ball around 3/4 of a mile. I hope that you enjoy the mission!
      • 2
      • Like
  6. Updated November 14 - Adjusted HSI scale to 10NM, Set left MDI to FCS Page, fixed RDR altimeter
  7. Welcome to Sedlo's Case 1 Landing Practice Mission! Required Modules: DCS F/A-18C Hornet AND the DCS Supercarrier Link to download: https://www.digitalcombatsimulator.com/en/files/3319457/ This mission will help you practice Case 1 Landings on the Super Carrier! The mission starts off in Active Pause and it's important that you do not touch any controls (HOTAS, keyboard, mouse) until the warning message disappears. While it's in Active Pause, the mission will automatically configure your TACAN, ILS, MFDs, Gear, Flaps and Hook for the landing. When the simulation unpauses, you will find yourself about 4 miles back in the landing configuration. Get on speed as soon as you can. If you want to get graded and LSO support, contact the carrier inbound right away. You won't have to call the see you at 10, but you DO have to call the ball around 3/4 of a mile. I hope that you enjoy the mission!
  8. @Toni CarreraThat is the $100 dollar question! I have not found a way to do it, other than manually adding them in the mission editor, one by one. If you find a way, let me know!
  9. I like to do it something like this: TRIGGER CONDITION ACTION Mission Start Set Flag Random Value (flag 5050, between 1-4) Activate Group 1 Flag 5050 = 1 Unit Inside Zone Group Activate Group 1 Activate Group 2 Flag 5050 = 2 Unit Inside Zone Group Activate Group 2 Activate Group 3 Flag 5050 = 3 Unit Inside Zone Group Activate Group 3 Activate Group 4 Flag 5050 = 4 Unit Inside Zone Group Activate Group 4
  10. @Toni Carreragood luck, feel free to ask if you run into another roadblock!
  11. Hey @Toni Carrera Just taking a quick look, not only do you have to make a clickable action to press the button, you then have to make a clickable action to "un-press" the button, as well. Value 1, then another action to make value -1 (or 0, depending on your action). Otherwise the button remains pressed in and the other functions may not work, as the button is being pressed continuously. To make the Hornet autopilot set to BARO hold, do this. TRIGGER CONDITION ACTION Press AP Button Time Since 135 = 1 Perform Clickable 3001, 1 Un-Press AP Button Time Since 135 = 2 Perform Clickable 3001, -1 Press Baro OSB Time Since 135 = 3 Perform Clickable 3012, 1 Un-Press Baro OSB Time Since 135 = 4 Perform Clickable 3012, -1 You can sometimes do multiple clickable actions in a single trigger, others you can't. I can't see a rhyme or reason for some of them, so you just got to do trial and error. (BTW, your mission started for me with the hook down, not sure what's going on with your configuration, but you might want to check your hotas bindings or something). One other thing, I would avoid having a condition in the first MISSION START trigger. Just incase you want to spawn your player in later, your flag won't fire in that situation. I've attached an edited version of your mission to show you the autopilot button press logic. FA-18C-Mission-11 BUTTON PRESS.miz
  12. I use these start actions in my Red Flag 2 mission. If you want to see an example I did, check out the start from push version included in this mission: https://www.digitalcombatsimulator.com/en/files/3309966/
  13. That did the trick! Thanks!
  14. Hey Grimes! I tried that script on the wiki local jtac = Unit.getByName('jtacBob') local target = Unit.getByName('BMPAirDefenseSystemGroup1_unit1') local ray = Spot.createLaser(jtac, {x = 0, y = 1, z = 0}, target:getPoint(), 1337) local function updateRay() if target:getLife() > 0 then ray:setPoint(target:getPoint()) timer.scheduleFunction(updateRay, {}, timer.getTime() + 0.5) else ray:destroy() end end timer.scheduleFunction(updateRay, {}, timer.getTime() + 0.5) , and once the target gets killed I get a mission script error: SCRIPTING: Mission script error: [string " local jtac = Unit.getByName('jtacBob')..."]:5: Unit doesn't exist stack traceback: [C]: ? [C]: in function 'getLife' [string " local jtac = Unit.getByName('jtacBob')..."]:5: in function <[string " local jtac = Unit.getByName('jtacBob')..."]:4> jtacBob is still up there, the target (BMPAirDefenseSystemGroup1_unit1) is the one destroyed. Not sure what's going on here, mabye getLife is weird?
  15. Just to make sure, is the condition a “switched condition”?
  16. @toro 6 check to see that you don't have the little watch icon selected at the bottom of the mission editor. Unselecting that will unlock your aircraft.
  17. @Gunnar81they are: VHF_AM_FREQ HF_AM_FREQ UHF_FREQ
  18. If you're running the latest Open Beta you can now skip missions in the campaign in the UI.
  19. Very nice job, @StrongHarm!
  20. Try this: https://www.digitalcombatsimulator.com/en/files/3301137/
  21. No, the zone will keep it's orientation aligned with the True North.
  22. https://www.digitalcombatsimulator.com/en/files/3313952/ https://www.digitalcombatsimulator.com/en/files/3313260/ Here are some!
  23. It should work in alphabetical order... I would recommend maybe re-naming the numbers lower than 10 to incorporate a leading 0. (eg. 01, 02, 03)
  24. Give these a try: https://www.digitalcombatsimulator.com/en/files/filter/unit-is-fa-18c/user-is-sedlo/apply/
  25. Yep, but they also say no coalition aircraft used decimal seconds. It is hard to know 100%, as the manuals detailing these weapons deliveries are restricted/classified AFAIK. But the circumstantial evidence mounts.
×
×
  • Create New...