Jump to content

toutenglisse

Members
  • Posts

    1745
  • Joined

  • Last visited

Everything posted by toutenglisse

  1. This setting is detailed page 24 of DCS user manual EN 2020.pdf, the only clearly visible difference for me has been on aircraft mirrors.
  2. You can save as "static template", and all units and statics linked to aircraft carrier will be there when you'll add it in a mission. But you will need 1 template per map.
  3. It is possible with script.
  4. I noticed it too. F16-DgFt-sound-bug.trk
  5. If you want you can edit CTLD.lua (with notepad++): 1) to update laser every second : at line 5328 replace timer.getTime() + 15) by timer.getTime() + 1) 2) to turn lasing point from target position to a dynamically leading point from target position : replace lines 5460-5461 by what I wrote on this post :
  6. You maybe refer to this : "Here's the good news: It's really easy to prevent DCS from displaying a message box when it encounters an error in a Lua script: Simply set env.setErrorMessageBoxEnabled(boolean on) to false: env.setErrorMessageBoxEnabled(false)" From :
  7. The only issue is lacking parenthesis line 5 : allGroups[j]:getController():setOption(29, 4000) Then it works normally (no matters if in a AAA group there is SAM only air def).
  8. Hi, the number value inside the function is for defining task delay, not respawn delay. You need respawn to be scheduled. Example : if (Group.getByName('Convoy3') and Group.getByName('Convoy3'):getSize() < 1) or not Group.getByName('Convoy3') then local addtime = mist.random(90, 180) mist.scheduleFunction(mist.respawnGroup,{'Convoy3', true}, timer.getTime() + addtime)--respawn will occure between 90/180 seconds end
  9. I don't know. It should work the way you wrote it but obviously it doesn't. I never use timer.scheduleFunction so I can't tell if there is a bug or a typo, I use the Mist function, and the following works (with Mist loaded) : mist.scheduleFunction(trigger.action.setUserFlag, {'switchFlag',0}, timer.getTime() + 2)
  10. Here your scheduleFunction only runs at time = 5 seconds in the mission. ( DCS func scheduleFunction - DCS World Wiki - Hoggitworld.com )
  11. As it returns a number ("Return Value:number" in wiki) it can't work with other then number. Edit : you can ask if a Unit is true, means does it exist, but you can't ask if a number is true, it's not a question that scripting engine will "understand". So in this case you can only ask if a number (what function returns) is equal to a number, or greater than a number etc...
  12. True. And we have modules with no TGP but with ability to deliver GBU-24, like the M2000c, so it is needed for JTAC to be able to lase static structures / scenery objects in single player mission.
  13. Hi, it is normal, as getUserFlag() gets the numerical value of a flag (0, which is false flag, or 1, 2, 3 etc ... which is true flag). setUserFlag() is different as you can input a value, or a boolean state (which in fact converts to value, 0 for false and 1 for true). "if trigger.misc.getUserFlag(1) == 0 then" will check if flag 1 is false, "if trigger.misc.getUserFlag(1) > 0 then" will check if flag 1 is true, whatever the positive value.
  14. @Grimes explained here what I want to tell you, but much better : https://forums.eagle.ru/topic/268695-need-help-with-assessing-a-unit-from-a-table/?do=findComment&comment=4634890
  15. As pointed by @Grimes in this thread : You can use Unit:getDesc()["category"] and that will return the expected value you need (0 for plane unit, 1 for helicopter, 2 for ground unit etc...).
  16. The command doesn't exist. You found the simpliest workaround. It is possible for JTAC to lase anything with script but it is infinitely less simple than using a unit on static like you did.
  17. You need to use the option "toggle" with boolean value. ("toggle is an optional variable that if present will switch the flag value to false when the required conditions are not met. If not specified toggle defaults to false.") @dark_wood - only run the "units in zones" function one time - it will be checked every second if no other "interval" option is specified. It is only your part of function that checks flag value that needs to be ran with the interval you want. If not then you run as many additional "units in zones" functions as minutes are passing. Also you can use a "stop flag" option to stop the function when you don't need it anymore.
  18. Hi, I may be wrong but from what I understand (from the same scripted function) the radio item (9line via SADL) is enabled with Datalink turned true for the JTAC. (datalink: Boolean value that determines whether or not the JTAC will send the 9-line via SADL. By default this option is enabled) And in its "attributes", F16C_50 has datalink, while Mi24P and Ka50 don't.
  19. It is the way to do of the JTAC autolase script, available standalone or as part of CTLD ( all made by @Ciribob ). You can see inside this script how it is done (or use it !). (CTLD thread is just above in "sticky threads" list)
  20. coord.LotoLL() has 2 parts, so : do local lat, lon = coord.LOtoLL(Unit.getByName('BLF Killbox 1 NW'):getPoint()) local coordsLL = mist.tostringLL(lat, lon, 4) trigger.action.outText('Killbox NW coordinates: ' .. coordsLL, 60) end
  21. Interesting usage here by Reflected :
  22. I've never used AI On/Off for SAMs so IDK, but the appropriate option to use with it I think is Alarm State Green/Red, and it worked correctly last time I used it (recently).
  23. Yes, you can set a trigger for that. You can refer to manual (DCS\Doc\DCS User Manual EN 2020.pdf). Signal flare actions are described at page 150.
  24. Yes but I don't know, maybe depends on the type of alert (Top Gun reference lol : when Mav' is on "alert 5" on the deck, he is already engines idle on the catapult, until Ice' situation requires the launch).
×
×
  • Create New...