Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: haloboy100 on June 04, 2013, 12:21:05 am

Title: The distance operator
Post by: haloboy100 on June 04, 2013, 12:21:05 am
In FRED2 Open 3.7.0 RC2;

I could possibly not be using this properly, but when I try to use it under "when", it's grayed out. I want a SEXP to evaluate in the events editor according to when a ship is a certain distance to a waypoint, but when I try to add the operators "distance" or "distance-to-nav" they are grayed out. Is this a bug, or am I intending to use this incorrectly? The only operator choosable under "distance and coordinates" is "is-in-box." I would use this operator, but it doesn't work with waypoints.
Title: Re: The distance operator
Post by: General Battuta on June 04, 2013, 12:22:15 am
You need to add a less then, greater than, or equal to comparison first.
Title: Re: The distance operator
Post by: haloboy100 on June 04, 2013, 12:24:07 am
Oh, doi. Even after taking a logic class, it appears I haven't learnt anything.

Thanks very much.