Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: tnathan475 on April 27, 2014, 01:19:04 pm

Title: Turret field of view?
Post by: tnathan475 on April 27, 2014, 01:19:04 pm
Is it possible to make a turret facing the opposite direction fire at its target? I am trying to make a capital ship which has a turret at its rear facing aft lock on and fire a bomb at a target in front of the ship.
Title: Re: Turret field of view?
Post by: DahBlount on April 27, 2014, 02:25:52 pm
Yes, however it may difficult to do with multi-parts depending on the situation.

For example, the missile tubes on a UEFg Karuna (Look it up on the wiki) have an FOV of 360 degrees, meaning no matter where the target is, the turret will fire missiles at the target. Single-part turrets have only one sub-object with a "fixed" firing normal.  This is the main approach to missiles.

The reason multi-part (rotating base with elevating barrels) turrets are typically not used for missile launchers is because the as the FOV is changed, so does the angle at which the barrels can be elevated to. This can be counteractive, as we don't want the missile tubes pointing directly into the hull of the ship firing do we?

The FOV is not changed in a table (Wish it could be) but rather the .pof model file itself contains pre-determined FOVs that the modder can define.
Title: Re: Turret field of view?
Post by: tnathan475 on April 27, 2014, 09:08:42 pm
Can't thank you enough DahBlount, my warships are now engaging each other as I wanted now.