Jump to content
Sign in to follow this  

Recommended Posts

Hi im just curious about the camera in the armory, when you select a weapon to view and the camera floats around ect i noticed the camera is bound to the soldiers head as you notice that every step the soldier takes the camera moves with him over bumps ect.

Now im wondering if its possible to use this for 3rd person view. My idea is to try and get the solder to lean with the camera following his head movements thus making the lean function work in 3rd person.

Thanks in advance if any one would know where to locate this setting or if it will be possible.

Share this post


Link to post
Share on other sites

Not sure if this is what you were looking for but it much the same. This is from a JasonO at the ArmedAssault.EU forum

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

_vehicle = ChangeThisToYourVehicleName

_cam = "camera" camcreate getpos _vehicle

_cam cameraeffect ["internal", "back"]

_i = 0;

#loop

_cam camPrepareTarget _vehicle;

_cam camPrepareRelPos [0,0.2,-0.165];

_cam camPrepareFOV 1.3

_cam camCommitPrepared 0

~0.01

?(_i > 150): goto "end";

_i = _i + 1;

goto "loop"

#end

_cam cameraeffect ["terminate", "back"]

camdestroy _cam

Put this into a text document and save it as "FixedCam.sqs" in the ARMA\Missions\MyMissionName folder.

You have to change the vehicle = portion to reflect the name of your vehicle.

In the vehicle's init line, just type in <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">[] exec "FixedCam.sqs"

You have to play with the [0,0,0] portion of the script to get a desired angle though. It was hard on the head for me. In that area I ended up using [2,-60,0] for a couple camera angles.

Hope that helps pistols.gif

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  

×