-
Posts
1745 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by toutenglisse
-
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.
-
How to make group template containing ships and statics
toutenglisse replied to dresoccer4's topic in Mission Editor
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. -
-
It is possible with script.
-
need track replay Aim9x search sound keeps active
toutenglisse replied to Csgo GE oh yeah's topic in Bugs and Problems
I noticed it too. F16-DgFt-sound-bug.trk -
Complete Transport and Logistics Deployment - CTLD
toutenglisse replied to Ciribob's topic in Scripting Tips, Tricks & Issues
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 : -
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 :
-
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).
-
MIST - Cant seem to get respawn to work
toutenglisse replied to 0414 Wee Neal's topic in Mission Editor
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 -
timer.scheduleFunction with several parameters
toutenglisse replied to CougarFFW04's topic in Mission Editor
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) -
timer.scheduleFunction with several parameters
toutenglisse replied to CougarFFW04's topic in Mission Editor
Here your scheduleFunction only runs at time = 5 seconds in the mission. ( DCS func scheduleFunction - DCS World Wiki - Hoggitworld.com ) -
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...
-
Hot to get JTAC to target a static object
toutenglisse replied to Oilman100's topic in Mission Editor
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. -
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.
-
@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
-
Unit:getCategory() return Object.Category?
toutenglisse replied to Theodossis's topic in Mission Editor
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...). -
Hot to get JTAC to target a static object
toutenglisse replied to Oilman100's topic in Mission Editor
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. -
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.
-
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.
-
How to keep laser on moving targe - scripting
toutenglisse replied to hmleao's topic in Mission Editor
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) -
mist.msgMGRS Repeats for the Display Time
toutenglisse replied to Wrecking Crew's topic in Mission Editor
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 -
Signal flare fire on the airfield to tell the pilots to take off ?
toutenglisse replied to Basco1's topic in Mission Editor
Interesting usage here by Reflected : -
Help needed! SAMs does not works with group AI ON and OFF!
toutenglisse replied to vctpil's topic in Mission Editor
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). -
Signal flare fire on the airfield to tell the pilots to take off ?
toutenglisse replied to Basco1's topic in Mission Editor
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. -
Alert take off with plane already visible at mission start
toutenglisse replied to CougarFFW04's topic in Mission Editor
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).