Jump to content
Sign in to follow this  
Stag

Very odd problem

Recommended Posts

I'm building an addon with a turret. All the named sections are correct, the turret rotates and the gun elevates.

But whatever I do, the turret only seems to rotate about the point "usti hlavne." I've tried switching axis position, but it always seems to pivot around this point. Has anyone come across this before? How can I get it to pivot around the correct point?

Share this post


Link to post
Share on other sites

Is this fixed? I really can't say much with the information given.Sounds like improper naming or missing axis,but it would be hard to say without looking at it.

Even tho its sideways,I learned about turrets looking at the uh60 chopper with the mgun

Share this post


Link to post
Share on other sites
Is this fixed? I really can't say much with the information given.Sounds like improper naming or missing axis,but it would be hard to say without looking at it.

Even tho its sideways,I learned about turrets looking at the uh60 chopper with the mgun

I was working through Brsseb's tutorial As I was doing it. Everything has been checked and double-checked, and yet the problem persists. sad_o.gif

Share this post


Link to post
Share on other sites

have you got something sim to this in cpp?

class Turret

{

gunAxis = "osa hlavne";

turretAxis = "osa veze";

gunBeg = "usti hlavne";

gunEnd = "konec hlavne";

soundServo[]={"Vehicles\gun_elevate",0.001000,1.000000};

body = "OtocVez";

gun = "OtocHlaven";

minElev=-3.5;

maxElev=+80.5;

minTurn=-360;

maxTurn=+360;

};

Share this post


Link to post
Share on other sites

Configs are not my strong point; what I have is a modified version of Brsseb's Boat Config. The lines which seem to do the same job as the code you posted are:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class TurretBase

{

gunAxis="osa hlavne";

turretAxis="osa veze";

gunBeg="usti hlavne";

gunEnd="konec hlavne";

soundServo[]={"Vehicles\gun_elevate",0.001000,1.000000};

minElev=-5;

maxElev=90;

minTurn=-360;

maxTurn=360;

body="OtocVez";

gun="OtocHlaven";

};

Share this post


Link to post
Share on other sites

SORTED!

smile_o.gifphalanx.jpg

Thanks for putting me on track, Scud.  

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×