Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: starbug on September 04, 2013, 04:36:05 pm

Title: Help with turrets please
Post by: starbug on September 04, 2013, 04:36:05 pm
I am trying to setup a couple of turrets on a ship, and i cannot get them to work right, The base of the turrets work and display fine in game but the barrels wont face in straight ahead. All the other turrets face the correct way, its just these side ones giving me problems. Where am i going wrong and do i have to add anything to the properties of the Barrels to get them to face forward on side turrets? see attached screenie.

[attachment deleted by ninja]
Title: Re: Help with turrets please
Post by: Revan227 on September 04, 2013, 04:39:13 pm
the barrels wont face anywhere but up until they have something to shoot at.

at least in my FREDding experience.


oops thats not fred. sorry but i have no clue.
Title: Re: Help with turrets please
Post by: starbug on September 04, 2013, 05:05:12 pm
Yeah i have added the code to the table for the barrel direction,

$Subsystem:                     turret01, 9999.0, 3.0
   $Default PBanks:        ( "Kinetic Cannon Des" )
   $Flags:       ( "untargetable" "check hull" "no subsystem targeting" )
   $animation:               triggered
   $type:                  initial
      +relative_angle:      90, 0, 0
$Subsystem:                     turret02, 9999.0, 3.0
   $Default PBanks:        ( "Kinetic Cannon Des" )
   $Flags:       ( "untargetable" "check hull" "no subsystem targeting" )
   $animation:               triggered
   $type:                  initial
      +relative_angle:      90, 0, 0

Now this is applied to all the turrets and they all point in the same direction except those 2, in which the barrels are totaly facing the wrong way.
Title: Re: Help with turrets please
Post by: Droid803 on September 04, 2013, 05:09:46 pm
side mounted turret detected
advising use fvec uvec fields

see pictures for correct setup
port and starboard both pictured for reference

(http://puu.sh/4jc1O.png)
(http://puu.sh/4jc2Q.png)

you cannot have working side-mounted turrets without these fields
thx

live thy lively life thx to shield battery
Title: Re: Help with turrets please
Post by: starbug on September 04, 2013, 05:13:20 pm
Ah cool, thanks Droid803 :)