Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: Phaserbank on June 07, 2010, 11:56:06 pm

Title: RSO
Post by: Phaserbank on June 07, 2010, 11:56:06 pm
dumb question. is there a sexpee or some way to identify the location, speed, and direction of a ship that is attacking the player? I went digging around and couldn't find anything.

The entire intent of this is to have the eqivalent of a rear seat officer giving you information through a dogfight. 
Title: Re: RSO
Post by: General Battuta on June 08, 2010, 12:19:59 am
Location, yes. Use get-object-x, get-object-y, and get-object-z. It will take slightly fancier FREDding to get these coordinates relative to the player.

Orientation, no. Speed...not sure. Don't think so.
Title: Re: RSO
Post by: FUBAR-BDHR on June 08, 2010, 12:31:38 am
Theoretically you could calculate the speed by having the event trigger every second and doing distance checks, storing to variables, and some math.  Hate to try to FRED that mess though. 

Direction I don't want to even think of.  I mean you could use 2 subsystems on the same ship and your ships position to do some calculations but I think this one might be one for scripting.  Actually both of these might but I'm not into scripting.   
Title: Re: RSO
Post by: FreeSpaceFreak on June 08, 2010, 02:22:06 am
What's wrong with Status -> Ship status -> current-speed?
Title: Re: RSO
Post by: Wanderer on June 08, 2010, 05:51:38 am
As FUBAR said all that can be done via scripting.