WeaseleyRon Posted January 21, 2021 Posted January 21, 2021 (edited) Hi everyone! I'm trying to create a campaign that allows the player to pick from various airframes, however I can't find a way to have the mission end when the aircraft controlled by the client gets destroyed. I used UNIT DEAD, but as soon as the mission starts, the sim marks the client as dead and the mission ends 30 seconds later. I believe it's marking all the unoccupied aircraft as "dead" and that's why it ends the mission instantly. https://100001.onl/ Does any of you guys know a way I can make this work? Edited June 13, 2022 by WeaseleyRon
toutenglisse Posted January 21, 2021 Posted January 21, 2021 Just 1 of many possible ways : create a large zone that covers the area where player can possibly be (I call it GameZone), and in your "end trigger" conditions put this : (exemple for 3 client units)
feefifofum Posted January 21, 2021 Posted January 21, 2021 (edited) This is unusual; units should not report dead until they are "born" for the first time, and if the airframe is never occupied it should never spawn. A workaround would be to simply set a flag when the player selects the unit for the first time, then check the condition of that flag as well as the "DEAD" condition. I.E. 1 ONCE (player chooses F16, NO EVENT) -> UNIT ALIVE (F16) -> FLAG ON (1) 1 ONCE (player F16 killed) -> UNIT DEAD (F16) + FLAG IS TRUE (1) -> End mission Repeat this for each flyable airframe; until the player chooses that plane and it physically exists in the mission, it will not activate the flag and thus cannot falsely trigger your mission end conditions. Edited January 21, 2021 by feefifofum THE GEORGIAN WAR - OFFICIAL F-15C DLC
Recommended Posts