Rocket / Projectile camera.
Code:
In the vehicle / unit init:
this addEventHandler ["fired",{nearestObject [_this select 0,_this select 4] switchCamera "EXTERNAL"}]
To get camera back to player create a trigger, replace 'this' in activation with:
! alive cameraOn
and then in On Act.:
vehicle player switchCamera "INTERNAL";
Make sure you set the trigger to repeatable.
You can use the projectile script from Armaholic. Nothing new :P
eclipse245 2 years ago
Yes but the one on Armaholic requires you to call on an external script, and does not work for all weapons or all projectiles.
This one is simpler, its not a script, just a camera switch code, can be placed on a unit in the editor without having an external file, and works for every weapon in the game
bravo1r 2 years ago
Now that is cool. You should add a delay before the camera switches back to the cockpit again.
Xclusiv8 2 years ago
yeah you need to call an external script to do that, then you can use the sleep command. I use a delay in my "impossible snipe" video. you cant control the chopper while your camera is on a projectile though so you would want to keep delay minimum or you might crash.
bravo1r 2 years ago
How do you get the camera to follow the missile like that? I am noob.
xBloodXGusherx 2 years ago
I have placed the code in the info section -->
bravo1r 2 years ago