Hard Light Productions Forums
Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: ShadowPuppet on June 21, 2004, 01:45:40 pm
-
Can't seem to get my head around the right combination of turret code/layout to get what I want here....
I have a 1-piece turret. Looks a little like a WW2 ship turret, but with no protruding barrel. The firepoint is located on a small 'blister' on the sloping front of the turret.
I want the turret to rotate 360 degrees, with the gun able to fire in an arc that covers straight ahead through to directly below. The turret is located on teh 'chin' of the ship.
How should I set this up?
Currently, the turret body is set as Turret01, a firepoint is set, with the normal set at 0,-1,1 which sets it roughly at 90 degrees to the turret's sloping front. Turret01 is set to rotate on the z axis, and FOV is set to 90 degrees. The gun fires OK, and covers the expected arc, but the turret does not rotate.
Do I have to set the thing up as a multi-part turret to have the turret body turn? If so, how should I set up the normal to get the arc of fire I require?
Tried just about every combination going, but can't seem to hit on the right one :(
-
Erm...you need a barrel for it to rotate....I think...
-
Turrets have to be multi-parts in order to rotate.
If you need any further help check out the Turretting tutorial in my FAQ.
-
Got it :) thanks!
Set it up with a seperate gun ( which I set as a non-rotating part ) and it rotates as it should now. Just need a bit of tweaking onthe FOV and thats the thing done :D ... well...apart from the texturing, table fine tuning...etc....etc ;)