EDIT : Yo man ! :D This is so cool! Just tried it but noticed one thing : I recorded my flight with UnitCapture, then replayed it and applied the script. But I've noticed that if you use the camera script while replaying a flight it just wont work, I mean, the camera would set but it would start stuttering like crazy and moving around. Is there any way to use cockpit camera while replaying a flight? Thanks buddy!
@@TPMTactical Oh yeah so its something that has to do with UnitReplay itself. Btw I just asked Benchmark if he knows any workaround, I'll let you know in case! :D I'm also trying myself some solution.
@@TPMTactical Here I am with THE SOLUTION BROTHER! :D Here's the trick : First of all I must thank Feuerex for helping me with this. This is the FIRST STEP (I'll list second one as we talk) : As Feuerex told me : rename your plane to something else, then create a game logic (under Systems -> logic entities), name the game logic as helo1, attach the plane to the game logic (planeName attachTo [helo1, [0,0,0]];) and try that instead. The reasoning is that the camera isn't directly attached to an object that gets sudden pushes to velocity and position, as it happens with UnitPlay SECOND STEP ( solution found by me workin' around) : I actually FOUND THE SOLUTION. So here's the command to load the recorded flight : helo1 engineOn true; []execVM "flying1.sqf"; This executes the .sqf file WHICH needs to be modified in order to make the airplane shoot now that its attached to helo1 (game logic). Basically the game logic is moving the airplane around right? But of course a game logic can't take controls of airplane guns. So in order to make the airplane (in this case called "jet1") shoot we have to modify the .sqf file as follow : _helo1movedata = ; _jet1pewdata = ; _helo1dothings = [helo1, _helo1movedata] spawn BIS_fnc_UnitPlay; [jet1, _jet1pewdata] spawn BIS_fnc_UnitPlayFiring; Hope this will help you as well my friend! EDIT : Oh and of course in the camera script you have to attach the camera to the game logic ( same name as you called it obv ). ^^
Question! I want to use this to do an outside shot of a helo flying. Do you know how I can get the camera only move with the helo and not tilt or turn as the helo does?
Embed GCAM into a test mission and give that a go. I had issues with the GCAM mod by itself as well. Here is a tutorial: ruclips.net/video/580C4H9w6xQ/видео.html
@@TPMTactical camera = "camera" camcreate [0,0,0]; camera cameraeffect ["internal", "back"]; camera attachTo [YourJetName, [0, 5.5, 0.95]]; camera setDir 180; camera camPrepareFOV 0.750; camera camCommit 0; showCinemaBorder false;
If you are using unitcapture and have pre-recorded shot data or you are viewing another player flying you can. There might be other ways, but I am not sure otherwise.
EDIT : Yo man ! :D This is so cool! Just tried it but noticed one thing : I recorded my flight with UnitCapture, then replayed it and applied the script. But I've noticed that if you use the camera script while replaying a flight it just wont work, I mean, the camera would set but it would start stuttering like crazy and moving around. Is there any way to use cockpit camera while replaying a flight? Thanks buddy!
I tried using unitcapture at first and had the same issue. The only solution I can think of is to use an AI pilot or another player.
@@TPMTactical Oh yeah so its something that has to do with UnitReplay itself. Btw I just asked Benchmark if he knows any workaround, I'll let you know in case! :D I'm also trying myself some solution.
@@TPMTactical Here I am with THE SOLUTION BROTHER! :D
Here's the trick :
First of all I must thank Feuerex for helping me with this.
This is the FIRST STEP (I'll list second one as we talk) :
As Feuerex told me : rename your plane to something else, then create a game logic (under Systems -> logic entities), name the game logic as helo1, attach the plane to the game logic (planeName attachTo [helo1, [0,0,0]];) and try that instead.
The reasoning is that the camera isn't directly attached to an object that gets sudden pushes to velocity and position, as it happens with UnitPlay
SECOND STEP ( solution found by me workin' around) :
I actually FOUND THE SOLUTION.
So here's the command to load the recorded flight :
helo1 engineOn true;
[]execVM "flying1.sqf";
This executes the .sqf file WHICH needs to be modified in order to make the airplane shoot now that its attached to helo1 (game logic).
Basically the game logic is moving the airplane around right? But of course a game logic can't take controls of airplane guns.
So in order to make the airplane (in this case called "jet1") shoot we have to modify the .sqf file as follow :
_helo1movedata = ;
_jet1pewdata = ;
_helo1dothings = [helo1, _helo1movedata] spawn BIS_fnc_UnitPlay;
[jet1, _jet1pewdata] spawn BIS_fnc_UnitPlayFiring;
Hope this will help you as well my friend!
EDIT : Oh and of course in the camera script you have to attach the camera to the game logic ( same name as you called it obv ). ^^
@@blackfalco33 That's awesome, will give the first step ago. I already use the second step.
@@blackfalco33 Could you help me with this tutorial as someone who knows nothing about unitcapture? Discord maybe?
Thanks for this mate! Gonna watch it right now!
If you have any questions, let me know.
This is huge! Thanks for sharing!
No problem mate, its what we do in the Arma community. Share all the good stuff ;)
hello I noticed something like camera tilt like the camera starts to shake when it is attach to a vehicle. Any idea how to fix it?
No sorry, however if you look at blackkfalco33s comments below, you might be able to use game logic entities if you are using unitcapture script.
Question! I want to use this to do an outside shot of a helo flying. Do you know how I can get the camera only move with the helo and not tilt or turn as the helo does?
@@TacticalMedic91 probably better to use GCAM mod for something like that.
@@TPMTactical I have tried. GCAM stutters REALLY bad now. It’s completely unusable for anything but fixed shots.
Embed GCAM into a test mission and give that a go. I had issues with the GCAM mod by itself as well.
Here is a tutorial: ruclips.net/video/580C4H9w6xQ/видео.html
как удалить эти черные полосы сверху и снизу?
I would have to check the code, I can't remember off the top of my head.
I found this if anyone needs it:
@@TPMTactical camera = "camera" camcreate [0,0,0];
camera cameraeffect ["internal", "back"];
camera attachTo [YourJetName, [0, 5.5, 0.95]];
camera setDir 180;
camera camPrepareFOV 0.750;
camera camCommit 0; showCinemaBorder false;
hello good. Is there any way to be able to shoot while with the camera?
If you are using unitcapture and have pre-recorded shot data or you are viewing another player flying you can. There might be other ways, but I am not sure otherwise.