Jump to content
Sign in to follow this  
Rush-GER

Camera script

Recommended Posts

Hello guys,

Im having fun on doing screens in Arma 3. Here are some examples:

http://imageshack.com/a/img841/7904/kw9d.jpg

http://imageshack.com/a/img577/9935/7u0s.jpg

and a lot more...

I know about this camera in editor, is also a good one, but for some screens it isnt enough.

I have absolutly no knowledge about scripting, but I had a idea for a nice screen. This one:

http://imageshack.com/a/img35/9988/cwsc.jpg

This one. I want to do the same screen in different daytime. But I had to change the daytime, go out the cameramodus, go in, but wasnt that good how you see, cause if you moved the mouse a little bit, or the soldier moved his head, the camera wasnt on the same position like the last, and the screen got fucked.

So I was searching for better camera, which standing on the same place all time. And I found it.

Thats the result of my idea and the script:

http://imageshack.com/a/img849/5458/wa7w.jpg

So, but now I wanna do some other nice screens, but for this I need more control about the camera and I also need a fixed camera, not this camera mod in Editor. I know how to place it on the map, but nothing more. I need to change the horizontal angle and so.

cam = "camera" camCreate [0,0,0];cam switchCamera "INTERNAL";

I also found this commands:

cam setVectorUP [0,0,0]

cam setVectorDir

I played little bit with this, but I dont know how to use it and I never got this camera how I want. So I need to know how to use this set commands, or some other commands for controlling this camera.

Thank you guys :)

Im also happing about some other scripts, they may help me doing some screens. Maybe AI control or so, so if you have some, pls post :)

And sry about my english, I know it isnt well.

Share this post


Link to post
Share on other sites

Something like this should do what you want.

//Define a position at the players location 4 meters above the ground
_pos = getPos player;
_pos set [2,4];

//Create the camera at that position
_camera = "camera" camCreate _pos;
_camera camPrepareFocus [-1,-1];
_camera cameraEffect ["internal", "BACK"];
_camera camCommit 0;

//Point the camera 90 degrees to the right
_camera setDir 90;

//Bank the camer 45 degrees to the right
[_camera,0,45] call BIS_fnc_setPitchBank;

BIS_fnc_setPitchBank handles the pitch and bank, the direction is just set as normal.

Share this post


Link to post
Share on other sites

Script works fine, here's the test mission:

camera_bank.Stratis.zip

You will see the camera view tilted to 45 degrees after you run it.

Edited by UNN

Share this post


Link to post
Share on other sites

Or you could use VTS, which has a great controllable camera function, mapclick to move etc.

Share this post


Link to post
Share on other sites

Is there no way with cam setVectorUP and so? This script is too difficult for me o.O

Ill look for this VTS

Edit: Hm its for scripting and so. God, so hard :/

---------- Post added at 20:03 ---------- Previous post was at 19:53 ----------

cam setVectorUP [0,0,0]; If I set this command from this to cam setVectorUP [1,0,0] or [-1,0,0] it throws the camera 45° left or right. But it only work with 0,5 or 1. I need better control

Share this post


Link to post
Share on other sites

Is there no way with cam setVectorUP and so? This script is too difficult for me

If you know how to use:

cam setVectorUP [0,0,0];

In a script then there is no reason why you can't use instead:

[cam,0,45] call BIS_fnc_setPitchBank;

It even takes values as degrees.

Edited by UNN

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×