Jump to content
Sign in to follow this  
celery

Moving turrets

Recommended Posts

How do you set the vector of a vehicle's guns and turrets? I've made a script that shortly places a soldier in a gun position and looks at a certain spot, but there has to be an easier way.

Share this post


Link to post
Share on other sites

You mean something like this?

weaponDirection

EDIT: Oh, you meant set and not get. Sry my mistake.

Share this post


Link to post
Share on other sites
_turretgunner glanceat _SomePos

That only works for manned vehicles and I'm using that method right now. I want something that switches the turret's vector immediately without someone operating it.

Share this post


Link to post
Share on other sites

Put an empty vehicle,name mytank,write in init:this dotarget certain spot

Put a Gamelogic,write in his init:this moveingunner mytank

Its not very accurate for closeby targets..

Share this post


Link to post
Share on other sites
Put an empty vehicle,name mytank,write in init:this dotarget certain spot

Put a Gamelogic,write in his init:this moveingunner mytank

Its not very accurate for closeby targets..

Thanks!

It's not the best solution because that temporary soldier is actually faster to move the turret, and it would be nice if the turret moved to a desired position when the player is already driving. Nevertheless, I got a wicked idea out of that game logic thing.

My original plan with this was to fix the turret of a car to an optimal melee vector to enable maximum damage with manual fire without allowing access to the gunner position. I planned it to be adjustable with radio commands.

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  

×