-
Posts
442 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by dark_wood
-
yourfunctionName() --do something end local timeOne = 20 local timeTwo = 40 timer.scheduleFunction(yourfunctionName, {}, timer.getTime() + math.random(timeOne,timeTwo))
- 1 reply
-
- 1
-
-
Device re-scan deactivates TrackIR.
dark_wood replied to Lange_666's topic in PC Hardware and Related Software
I just pull one USB cable from slot (joystick or hotas), then plug it back. -
Hi @tolis97d - i'm glad it worked, write here if you still have questions/issues.
-
Great info man, thanks, always is something new to learn. Probably I use a lot schedule function and you know, bad habits dies hard
-
@toutenglisse, well, I prefer the schedule function approach, but yes, he can do something like: mist.flagFunc.units_in_zones{ units = {'[blue][vehicle]'}, zones = {'Zone1'}, flag = 7, req_num = 4, interval = 60, toggle = true }
-
Also, be aware that i only showed you how to repeat the function and reset the flag, the capture zone is a whole different story...
-
I need more details here, have you wait it at least 70 seconds from mission start? Cause it starting after 10 seconds and repeat after 60, so let it run for 2-3 minutes Second, did you see the 'function was called' message? We need to be sure the function checkMyZone() is called. Make sure that you first call MIST library, then your script: MISSION START > no condition > do LUA file (load MIST library lua file here) ONCE > Time more 5 seconds > do LUA file (load here your LUA file) Finally, let us know if you see any errors when you run the mission.
-
Try this: function checkMyZone() --output a text to see that function is called each minute trigger.action.outText('function was called', 1) --if flag 7 is false, do the check if trigger.action.getUserFlag(7) == 0 then mist.flagFunc.units_in_zones{ units = {'[blue][vehicle]'}, zones = {'Zone1'}, flag = 7, req_num = 4, } trigger.action.outText('Flag 7 is true', 5) else --flag 7 is true, reset it trigger.action.setUserFlag(7, false) trigger.action.outText('Flag 7 was reset', 5) end end do --start function after 10 seconds, then call it again after 1 minute, end it after 1 hour mist.scheduleFunction(checkMyZone, {}, timer.getTime() + 10, 60, timer.getTime() + 3600) end Basically, you need to call your function at a period of time (1 minute in this case - feel free to change it as desired), then check your flag 7 status, if is false, do your code, if is true reset it so it can be checked again after 1 minute. Hope it helps
-
no "Infantry" tab for some countries in ME
dark_wood replied to Jagohu's topic in Mission Editor Bugs
This is more fitted for wishlist than being a bug - until is added on all countries you can use Joint Task Forces Red/Blue faction infantry. -
I think distance is 0 cause unit Igor is part of Bandit-1 group. Anyway, see this topic, maybe it gives you some solutions: Otherwise, if still not working, you can try to build your own function, get distance, get bearing, etc. then mix them together in a message.
-
I see that mist.msgBRA is requesting for 'units' parameter to be a valid table and you are passing a group name: local mytunits = mist.makeUnitTable({'[g]Bandit-1','[g]Hammer-1'}, 'static') then use it on your code: mist.msgBRA({ units = mytunits, ref = "Igor", metric= false, text="BRA ", displayTime = 10, msgFor = {mytunits["Snake"]}, }) See references: https://wiki.hoggitworld.com/view/MIST_msgBRA https://wiki.hoggitworld.com/view/MIST_makeUnitTable https://wiki.hoggitworld.com/view/UnitNameTables Hope it helps
-
Alert take off with plane already visible at mission start
dark_wood replied to CougarFFW04's topic in Mission Editor
Well, 2 minutes isn't that long, and it will be more realistic, no one keeps fighters with started engines for alarms Just trigger an alarm sound, put some soldiers/techs to run, vehicles to move away and you have the scene ready to go But, of course, you can delay it with a soldier placed in front, that is the easiest way to do. -
Alert take off with plane already visible at mission start
dark_wood replied to CougarFFW04's topic in Mission Editor
Why don't you use "Start" option, combined with uncontrolled option and a flag? See here: Hope it helps -
[ALL MODULES][SP/CO-OP] Liberation Dynamic Campaign
dark_wood replied to shdwp's topic in User Created Missions General
Yes, but if haven't played in a long time, and updated to the last version, that old mission won't be compatible with the new stuff. Just rename it, if you don't want to lose it, and start a new fresh campaign, which will generate a new miz file -
[ALL MODULES][SP/CO-OP] Liberation Dynamic Campaign
dark_wood replied to shdwp's topic in User Created Missions General
Delete liberation_nextturn.miz from SavedGames Mission folder (Saved Games\DCS.openbeta\Missions) -
Maybe is an issue with the waypoint approach. Try to call the script file as usual (not on waypoint): ONCE > Time more 10 > Do Script File If this is working, then you must use something else to achieve your goal - place small zones around waypoint, and use unit in zone, for example.
-
place your Lua line between do and end statements: do trigger.action.outText("SCRIPT : F16 passing Wpt1" , 10) end
-
Liberation...what to do after clicking "take off"?
dark_wood replied to Steel Jaw's topic in User Created Missions General
Open DCS, go to missions, find Liberation liberation_nextturn.miz file (in Missions folder, Saved Games), open and fly like any other mission. In older versions, it was recommended that you open the mission file in Mission Editor first, then hit Fly - but is working direct from Missions (at least for me). More details here: Hope it helps you -
Delete DO FILE action and add it again
-
Try to release when horizontal line is coming down: More details here: https://chucksguides.mudspike.com/DCS/DCS F-16C Viper Guide.pdf page 277...
-
Go to Customize (top menu in ME), Mission Customization, Show All
-
With pleasure @Tabasc0. As an addition to @cfrag idea, besides a default sound library, should be possible to improve it by adding user sound files in Saved Games DCS folder - i think the majority of mission builders have some preferred sounds that they use regularly in their missions.
-
Here you go: https://www.lazygranch.com/red_audio.htm http://www.radioscanner.ru/files/aviarecords/ https://www.liveatc.net/recordings.php https://freesound.org/ also, you may need: https://audio.online-convert.com/convert-to-ogg Hope it helps
-
We Want To Hear Your Ideas For A New Map In DCS!
dark_wood replied to danielzambaux's topic in DLC Map Wish List
Probably because it doesn't have sea - no carrier ops -
We Want To Hear Your Ideas For A New Map In DCS!
dark_wood replied to danielzambaux's topic in DLC Map Wish List
Baltic Sea, Balkans, Vietnam