Jump to content
Sign in to follow this  
D.Ginzbourg

A camera that sticks to the tank turret?

Recommended Posts

I was wondering and searching on google/this forum, how to stick a camera to the tank turret?

Couldn't find any codes at all... only attachTo but that doesn't stick to turret...

Share this post


Link to post
Share on other sites

I can't try it now but maybe this will help.

Stick camera on the tank with command attachTo. Then you can use camSetTarget (http://community.bistudio.com/wiki/camSetTarget). As target use some tank's memory point which is in desired direction from position of camera.

Share this post


Link to post
Share on other sites

whats the name of the turret in memory point?

can't find it anywhere..

Share this post


Link to post
Share on other sites
whats the name of the turret in memory point?

can't find it anywhere..

You could do something like:

this addEventHandler ["HandleDamage", { copyToClipBoard (_this select 1); hint (_this select 1); }];

Drop that in your tank init or something, then go in game and shoot the selection you want, you should get a hint with the selection name and the name will also be stored in the clipBoard.

_neo_

Edited by neokika

Share this post


Link to post
Share on other sites
whats the name of the turret in memory point?

Try memory point "kulas" for position of camera and "usti hlavne" as target.

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  

×