Results 1 to 2 of 2

Thread: Camera!

  1. #1
    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.

    ]http://www.armaholic.com/page.php?id=1578
    NewView pack 2.0 with health bar and dot crosshair

  2. #2
    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 = &#34;camera&#34; camcreate getpos _vehicle
    _cam cameraeffect &#91;&#34;internal&#34;, &#34;back&#34;&#93;

    _i = 0;
    #loop
    _cam camPrepareTarget _vehicle;
    _cam camPrepareRelPos &#91;0,0.2,-0.165&#93;;
    _cam camPrepareFOV 1.3
    _cam camCommitPrepared 0
    ~0.01
    ?&#40;_i &#62; 150&#41;&#58; goto &#34;end&#34;;
    _i = _i + 1;
    goto &#34;loop&#34;

    #end
    _cam cameraeffect &#91;&#34;terminate&#34;, &#34;back&#34;&#93;
    camdestroy _cam[/QUOTE]

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

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

    In the vehicle&#39;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">&#91;&#93; exec &#34;FixedCam.sqs&#34;[/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
    Okay, I am forum lurking lol.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •