View Full Version : Camera!
May 14 2007, 17:03
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.
May 18 2007, 19:18
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;
_cam camPrepareTarget _vehicle;
_cam camPrepareRelPos [0,0.2,-0.165];
_cam camPrepareFOV 1.3
_cam camCommitPrepared 0
?(_i > 150): goto "end";
_i = _i + 1;
_cam cameraeffect ["terminate", "back"]
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"[/QUOTE]
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 http://forums.bistudio.com/oldsmileys/pistols.gif
Powered by vBulletin® Version 4.2.2 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.