Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: ReeNoiP on August 09, 2009, 04:05:06 am

Title: About "set-object-facing-object"
Post by: ReeNoiP on August 09, 2009, 04:05:06 am
I am trying to turn a destroyer using this sexp and a waypoint, but have problems setting the turn time, so that it looks realistic. If I set something like 800, it turns in 1-2 seconds, but if I set 8000 (assuming milliseconds) it doesn't move at all.

What I have is another ship heading for the waypoint at 20 m/s, and I want it to look like the destroyer is trying to face that ship.

set-object-facing-object
destroyer
waypoint
??
0
Title: Re: About "set-object-facing-object"
Post by: General Battuta on August 09, 2009, 08:52:19 am
I've had a lot of trouble with this SEXP. I'd just use set-object-facing and input the waypoint's coordinates instead of bothering with set-object-facing-object.
Title: Re: About "set-object-facing-object"
Post by: headdie on August 09, 2009, 09:44:38 am
what you turning the destroyer for?

I ask looking for an alternative way to do it
Title: Re: About "set-object-facing-object"
Post by: Rodo on August 09, 2009, 10:42:46 am
If you issue an attack order to that destroyer it might turn to face the enemy ship.
Title: Re: About "set-object-facing-object"
Post by: ReeNoiP on August 09, 2009, 11:31:38 am
If you issue an attack order to that destroyer it might turn to face the enemy ship.

Yeah, but I can't control the speed. And it will bank and move towards the ship, which I don't want. I am going to try with set-object-facing, once I get some time again.