Hard Light Productions Forums
Modding, Mission Design, and Coding => The Modding Workshop => Topic started 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.
-
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.
-
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.
-
What's wrong with Status -> Ship status -> current-speed?
-
As FUBAR said all that can be done via scripting.