Jump to content
gc8

jittering camera

Recommended Posts

Hi

i'm working on vehicle script where i have to use setvelocity command but this seems to make the third person camera to jitter. so to solve this I tried creating camera script but the main problem with that is that player cant access map and use the actions.

 

this is what i have so far:

_cam = "Land_HandyCam_F" createVehicleLocal [0,0,0]; 
_cam hideObject true; 
_cam attachTo [vehicle player, [0,-5,1]];
_cam switchCamera "external";

what I need is basically the third person camera but without jitter.

 

can anyone help?

 

thx

Share this post


Link to post
Share on other sites
ok I got this so far but I cannot understand why I can set only z value of camSetRelPos or the camera starts making weird loops when mouse is moved:
 

_p = getpos player;
_cam = "camera" camCreate _p; 
_cam switchCamera "internal"; 


while {true} do
{
_cam camSetTarget player;


_cam camSetRelPos [0, 0, 5]; // ok
//_cam camSetRelPos [0, 5, 5]; // not ok


_cam camCommit 0;

};

 

anyone knows how to do this properly?

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

×