Hard Light Productions Forums
Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: Retsof on December 20, 2007, 08:49:30 pm
-
I am making a mission, and there is the classic, "whats is that, go check it out, its the fuzzy thing on your radar". I cant get the directive to turn red when it jumps out and you haven't got close enough. You are actually supposed to fail this, so it's kind of important.
-
Hmm, 'tis tricky with my lack of experience. Should be an interesting puzzle. Let's see....
DIR (Scan ship)
---when
---------and
---------------is-cargo-known-delay
---------------------0
---------------------Evil ship o' doom
---------------not
---------------------has-departed-delay
------------------------------0
------------------------------Evil ship o' doom
Try that and see what happens.
-
when
--<
----distance
------alpha 1
------(ship)
----(distance you must get past to succeed)
--do nothing
Will be incomplete unless you get to the succeed distance then will be true. If ship warps before distance then it fails.
-
when
--<
----distance
------alpha 1
------(ship)
----(distance you must get past to succeed)
--do nothing
I already tried that one, the directive stays blue.
EDIT: I just tried it agian, I don't know what it was, but it works now. Mabey I was using ">" instead of "<".