Hard Light Productions Forums
Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: DarthWang on June 24, 2005, 07:10:45 pm
-
Okay, I'm seriously stumped.
I have a mission with an installation, and you're supposed to defend it, however, I cannot find a way to make a mission objective that returns false if it is destroyed!
If I use not - is destroyed delay, it says the objective is completed as soon as I start the mission. The same thing is true for not - is event true delay and is event false delay. I can't use variables, because the mission objectives editor won't let me. Help!
-
You might want to use something along these lines for this:
-and
--not
---is-destroyed-delay
----Installation
----0
--is-event-true-delay
---End of Mission Event
---0
Doing this automatically makes FRED wait for the event to come true, while at the same time waiting for the installation to still be intact. So, at the end of the mission when "End of Mission Event" occurs and the installation is still there, the goal will return true (AKA: you win). If the station is destroyed before hand, then there is no possibilty of the two events playing out at the same time (AKA: you lose), so the goal returns false.
Hope this is right. I'll wait for kara or someone with a little more FRED experience to help me out here.
-
Thanks, I'll try that.
-
So far, it seems to work. Thanks!
-
No problem at all. :)
-
Originally posted by nuclear1
Hope this is right. I'll wait for kara or someone with a little more FRED experience to help me out here.
Don't need my help. That's exactly what I would have done :)
-
In retrospect, it seems pretty obvious. I guess I just had FREDders block or something.
-
It happens. ;)