Jump to content
Sign in to follow this  
instagoat

Attaching Object to M2A1 turret

Recommended Posts

I am trying to attach a static gun to the turret of an M2A1 slammer. I am using

this attachTo [tank,[0,-1,3],"usti hlavne"];

and tried pretty much all turret relevant memory points. If I am using usti hlavne the gun is attached to the cannon, but will only point in the direction of the hull. I can't figure out how to attach it to the turret instead of the gun and make it rotate with the turret instead of the hull.

Any Ideas?

Share this post


Link to post
Share on other sites

the only way I can think of what you could do right now is make a script and then have it like

while {true} do
_tanktur = getDir [(_this select 0),[0,0]]; //get direction of commander turret(if you want the gunner turret just make it [0]
(_this select 1) setDir staticTurretNameHere //set direction of your turret

something along the lines of that.

Share this post


Link to post
Share on other sites

There is a pretty good example using this with setVectorDirAndUp in the attachTo wikipage.

Edited by Lappihuan
typo

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  

×