Jump to content
Sign in to follow this  
clivant

Can I change the bank for the camera view

Recommended Posts

Hi friends,

I am trying to roll the camera with the following script:

#include "\vbs2\headers\function_library.hpp"

_cam = "camera" camCreate [1000, 1000, 30];

_cam cameraEffect ["external", "BACK"];

_cam camCommit 0; waitUntil { camCommitted _cam };

[_cam, 0, -90] call fn_vbs_setPitchBank;

However, I realised that no matter what value I set for the second input parameter for fn_vbs_setPitchBank function, the camera's bank is not affected.

Are there any way in which I can change the bank for the camera view through scripting? Or is it that there is no way to affect the roll/bank of the camera view?

Thanks in advance. :)

Share this post


Link to post
Share on other sites

Did you try the commands that deals with camera bank? Like camPrepareBank or camSetBank? Never used them myself though.

Share this post


Link to post
Share on other sites

Yup, I tried them all, but they just doesn't seem to have any effect at all.

Share this post


Link to post
Share on other sites

Hi guys,

I solved the problem. The problem lies with the camera effect. To make sure that the camera is "bankable", the cameraEffect should be set to "internal".

Hence the following code is how the camera can be rolled.

#include "\vbs2\headers\function_library.hpp"

_cam = "camera" camCreate [1000, 1000, 30];

_cam cameraEffect ["internal", "BACK"];

_cam camCommit 0; waitUntil { camCommitted _cam };

[_cam, 0, -90] call fn_vbs_setPitchBank;

Thanks to Carl for replying :)

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  

×