Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: Stormkeeper on August 13, 2008, 08:34:24 am

Title: Quick Turret question
Post by: Stormkeeper on August 13, 2008, 08:34:24 am
About multi part turrets - must they be standard, or can be different?

For example:

A standard FS2 multi part turret is like a cube with multiple barrels stuck in it. If I wanted to create a turret using a cube as a base, and attached two more spheres as joints to two additional cubes which held the actual barrels and firing points, is it possible? In other words, I want the turret to be something like this:

|        |
|x|--|x|
|  |_|  |

Where x is the spheres.
Title: Re: Quick Turret question
Post by: Vasudan Admiral on August 13, 2008, 08:40:57 am
Multipart turrets can be any shape and geometry you want, but they must follow these simple rules:
1) They must have a rotating base subobject
2) They must have a rotating arm subobject set up as a child of the turret base (a direct child mind - not a child of a child or anything else)
3) The centres of the subobject are what the turrets rotate around.

There is more to it than that if you want to have them rotating around an axis that is not the in-game Y axis (topside to belly axis), but as long as you follow those rules then you can make multipart turrets look like anything you can think of geometry and texture wise. :)
Title: Re: Quick Turret question
Post by: Stormkeeper on August 13, 2008, 08:44:26 am
So as long as the arm is a direct child of the base sub object, I'm fine?
Title: Re: Quick Turret question
Post by: Vasudan Admiral on August 13, 2008, 08:49:39 am
Pretty much, yes. Though you may have trouble with the technicalities of rotation directions and things, as long as they have their correct centres then they can be set up however you need.

If you have trouble in that regard, post piccies of the model with the rotations you want to be possible. :)