dr_hippo Posted May 12, 2020 Posted May 12, 2020 Can someone please can give me a hint. I would like to have a mission succeeded not only when the goals are met. The mission is succeeded when landing on a specific airport or carrier and on a parking spot. Any hints how to achieve this in the mission editor? Thanx and best regards
Rudel_chw Posted May 12, 2020 Posted May 12, 2020 (edited) ... I would like to have a mission succeeded not only when the goals are met. The mission is succeeded when landing on a specific airport or carrier and on a parking spot. Any hints how to achieve this in the mission editor? On the Editor, the sucess level is determined on the Mission Goals section. There you enumerate the diverse Goals you want to define for this mission and how many points are awarded to each. Points can be negative, and range from -100 to +100. For each Goal you state what are the conditions for it to be awarded ... as the Goal Conditions are a bit simplistic, I prefer to set the Conditions on a normal trigger, and have it just set a Flag, that will be then tested on the Goals section. For Example: Here I award 20 Score points if the player lands at Anapa. The Flag 204 determines if the points are awarded or not. Then on the triggers Section I have this: On this example, the conditions are: - The player must have been on the air .. Flag 27 was turned true when the player took off. - The player must be on the runway. - The player's plane altitude should be less than 3 meters. If these three conditions are true, the trigger emits a "touch down" message, and then sets the Goal Flag (204) to true, so that the Results Score gets the 20 points I defined for it. On DCS, a results over 51 points is deemed a sucess .. and if the mission was part of a Campaign, you would advance one level on the Campaign. 50 points is a Draw and on a Campaign it would have you stay on the same level (each level can have several missions). Less than 50 points is a defeat and on a Campaign you would go back to the previous level. There are more details on the new "DCS User Manual EN 2020" that is on the doc folder of your DCS. best regards, Eduardo Edited May 12, 2020 by Rudel_chw For work: iMac mid-2010 of 27" - Core i7 870 - 6 GB DDR3 1333 MHz - ATI HD5670 - SSD 256 GB - HDD 2 TB - macOS High Sierra For Gaming: 34" Monitor - Ryzen 3600 - 32 GB DDR4 2400 - nVidia RTX2080 - SSD 1.25 TB - HDD 10 TB - Win10 Pro - TM HOTAS Cougar Mobile: iPad Pro 12.9" of 256 GB
Majinbot Posted May 12, 2020 Posted May 12, 2020 Or you can use a simple land event script like: EventHandler = {} local LandingOne = Unit.getByName('[color="red"]Player[/color]') function EventHandler:onEvent(event) if event.id == world.event.S_EVENT_LAND and event.initiator == LandingOne and event.place:getName() == '[color="Red"]Stennis[/color]' then trigger.action.outText(LandingOne:getName().." is landed on "..event.place:getName(),20) end end world.addEventHandler(EventHandler) PC: i7-13700K - Gigabyte RTX 5080 GAMING OC - 64GB DDR5 6400 - VPC MongoosT-50CM3 - VKB GF pro - MFG Crosswind - Msi MPG321UR-QD + LG OLED 32GS95UE - TrackIR5 - Quest 3
Recommended Posts