Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: kingchicora1 on August 11, 2011, 11:07:51 pm

Title: Stay still, turn the front?
Post by: kingchicora1 on August 11, 2011, 11:07:51 pm
I have been fooling around with FRED and have become comfortable with it, yet I can't seem to make an event for this type of scenario.

I'm creating a simple blockade mission, where a corvette guards a jump node and destroys any Shivan ship coming in. The ships move quite faster than expected (It takes 2 minutes for a cruiser to go from 80+ down to -35) and so I wanted the corvette to turn towards a Shivan cruiser that jumps in so it can get a direct shot without the ship moving from it's current spot, but I can't seem to wrap my head around which command to use. Any help?

Dear god, I've just realised how "noobish" I made this question sound.   :nono:
Title: Re: Stay still, turn the front?
Post by: LordPomposity on August 11, 2011, 11:13:22 pm
Set-object-facing-object, found under change>coordinate manipulation. You'll want to use the optional third parameter so that the corvette spends time pivoting instead of instantaneously changing orientation.
Title: Re: Stay still, turn the front?
Post by: Droid803 on August 11, 2011, 11:59:10 pm
Alternatively, ship-maneuver, which will make it turn at the specified % of its top turning rate (tabled), thus ensuring a "realistic" looking turn.
Title: Re: Stay still, turn the front?
Post by: LordPomposity on August 12, 2011, 12:23:50 am
^^^^^^

Yeah, do it that way.
Title: Re: Stay still, turn the front?
Post by: Droid803 on August 12, 2011, 12:40:19 am
Its a bit harder though...you have to give it a time, and account for damp/acceleration while turning.