Здравствуйте всем! Созрел вопрос - надо сделать камеру как в этом видео
Вот описание видео как он делал это
Sorry there's no sound, this is a quick test to see how these kinds of shots would look on youtube. These shots were achieved using the code below. I was the camera, while a friend flew the F-18 around.
Setup: Place a vehicle and name it. In this case, I named the aircraft "F18". Place a man somewhere and name him "cameraman". Then create two scripts in the mission directory, shown below:
cam.sqf:
camera = "camera" camcreate [0,0,0];
camera cameraeffect ["internal", "back"];
camera attachTo [F18, [0, 5.40, 0.67]];
camera setDir 180;
camera camPrepareFOV 0.750;
camera camCommit 0;
init.sqf:
sleep 0.001;
if (player == cameraman) then {[] exec "cam.sqf";};
init.sqf will run at mission start for every player. So the second line will run cam.sqf only on the cameraman, turning him into a camera, while the pilot will still be able to fly around normally.
I recorded two flights, one with the camera in the cockpit and another with the camera outside the aircraft. For that, just change the cameraeffect from internal to external, and adjust the attachto point, setdir, and camPrepareFOV to values with a good view of the aircraft.
Я все перевел в переводчике , сделал по инструкции, но безрезультатно, добавлю что cameraman это имя отдельного бота(игрока) а самолёт с именем F18 отдельный бот. Потом сохранил в миссии, создал 2 скрипта. Запускаю миссию, и никакой камеры не видно.
Сообщение отредактировал Sandefend: 21 August 2014 - 20:12