virgo47 Posted December 23, 2024 Posted December 23, 2024 Recently, I was involved in scripting duties for a racing mission. You can try these missions online if you check "Black Angels" or "AirRace" in the server list - a helicopter and a warbird flavour is available. (Here you can also get the missions from your track file, but perhaps we will have a link as well.) Originally, the mission was full of triggers for each zone (there is a racing zone, kill zones and check zones you have to pass) and each player and it was also difficult to make it work for all clients independently. Imagine adding a new racer unit to a mission and setting all the triggers right. I said: "Hey, I can script a bit in Lua, I'll try to do a script for all these duties." The result is published here: https://github.com/virgo47/dcs-files/tree/main/mission-editing/scripts/air-race It supports both single and multi player, multiple players racing at the same time, and many other features. When you need a new racer, just add a group with a known (configurable) prefix. Add new killzones at will (with some prefix), or more checkzones that need to be passed. It also has a sub-second approximation, although the races script loop runs only once a second. And restart "voting". Altitude checks. Option to either kill unit or just softly disqualify it if it's out of bounds. And more. And I talk about all this in the following video: Merry Christmas to everyone and all the best to the New year! L-39, F-4E, F-5E, F-14, F/A-18C, MiG-15, F-86F, AJS-37, C-101, FC2024 Yak-52, P-47, Spitfire, CE2 UH-1H, Mi-8, Ka-50 III, SA342 NTTR, PG, SY, Chnl, Norm2, Kola, DE Supercarrier, NS430, WWII, CA VKB STECS+Gladiator/Kosmosima+TPR DCS Unscripted YouTube "Favourite" bugs: 1) Object local camera fast/slow inverted, 2) Yak-52 toggles not toggling, 3) all Caucasus ATC bugs
Recommended Posts