clivant 10 Posted June 28, 2010 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
CarlGustaffa 4 Posted June 28, 2010 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
clivant 10 Posted June 28, 2010 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
clivant 10 Posted June 30, 2010 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