Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Polpolion on December 25, 2008, 07:26:31 pm

Title: Idea: Distance-traveled
Post by: Polpolion on December 25, 2008, 07:26:31 pm
Would it be practical to have two SEXPs that measured the total distance that a ship flies?

One SEXP would mark when to start recording distance, another one would represent the distance that the ship traveled since the recording started, another would stop recording distance, and another would stop recording distance traveled.
Title: Re: Idea: Distance-traveled
Post by: portej05 on December 26, 2008, 12:35:27 am
Are you thinking of this from the point of view of distance from an object?, or absolute distance?

I'm not sure where to start looking for this one...  :confused:
Title: Re: Idea: Distance-traveled
Post by: FUBAR-BDHR on December 26, 2008, 12:46:38 am
Something like this might already be possible using existing sexps.  I can think of a few ways of doing it depending on what you are trying to actually do. 
Title: Re: Idea: Distance-traveled
Post by: Dark RevenantX on December 31, 2008, 10:07:48 pm
It could probably be used for a refueling section where your ship is immobile for longer if it flies more...