icebreakr 3159 Posted January 4, 2007 Am I overlooking something here or they aren't present as in OFP? Share this post Link to post Share on other sites
evilnate 0 Posted January 19, 2007 I have the same issue, it seems that they are forcing us to learn how to create camera scripts/intros. Now I just have to find a thread that shows how to use/create them. Share this post Link to post Share on other sites
Gorath 0 Posted January 19, 2007 this exec "camera.sqs" still works though. The names of camera commands were changed and some of functionality. Share this post Link to post Share on other sites
YacieK 0 Posted January 19, 2007 Make trigger - in initiation field write <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">this exec "camera.sqs".After, in game press left ctrl button. ArmA make file clipboard.txt like this <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_camera camSetTarget [-86548.66,39903.16,2448.52] _camera camSetPos [7580.00,6236.03,0.76] _camera camSetFOV 0.534 _camera camCommit 0 @camCommitted _camera @scriptDone _preload edit this like you own and wrie to "camera.sqs" sorry- my english not good. Share this post Link to post Share on other sites
evilnate 0 Posted January 19, 2007 Here's a script from a tutorial that will help get ya started. If you want a intro for a mission, name your actor bob and add this to your init.sqs <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">[bob] exec "camera.sqs" Then make a text file called "camera.sqs" and paste this into it. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> _Object = _this select 0 _camx = getpos _Object select 0 _camy = getpos _Object select 1 _camz = getpos _Object select 2 _cam = "camera" CamCreate [_camx,_camy+5,_camz+1] _cam CamSetTarget _Object _cam CameraEffect ["Internal","Back"] _cam CamCommit 0 ~10 _cam CameraEffect ["Terminate","Back"] CamDestroy _cam Exit Save this file in your folder that has your mission.sqm file and preview. Share this post Link to post Share on other sites
snkman 351 Posted January 19, 2007 Hi guy's well some very cool examples! THX!!! But i have a question too: Where the hell do i get the coordinates from? I mean: XYZ Is there any tool or something to display them? Share this post Link to post Share on other sites
pyro05x 0 Posted January 20, 2007 But i have a question too: Where the hell do i get the coordinates from? I mean: XYZ Is there any tool or something to display them? not that i know of, but you can use the hint command and do something like this: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">hint format["(%1, %2, %3)", (getPos this) select 0, (getPos this) select 1, (getPos this) select 2]; Share this post Link to post Share on other sites
veneratio 0 Posted January 20, 2007 Why try to get the possision when you can set some targets at the map, I did a litle intro to my mission and it worked just fine with some "invicible H" and name them like trg and campos. This is what my cam.sqs looked like, maybe not the moast optemized code but it worked. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_camx = getpos Campos1 select 0 _camy = getpos Campos1 select 1 _camz = getpos Campos1 select 2 _cam = "camera" camcreate [_camx,_camy,_Camz+300] _cam camsettarget Camtrg1 _cam cameraeffect ["internal","back"] camUseNVG true _cam camcommit 0 _camx2 = getpos Campos2 select 0 _camy2 = getpos Campos2 select 1 _camz2 = getpos Campos2 select 2 _cam camsetpos [_camx2,_camy2,_Camz2+300] _cam camcommit 15 ~1 _cam camsettarget Camtrg2 _cam camcommit 5 ~14 _camx3 = getpos Campos3 select 0 _camy3 = getpos Campos3 select 1 _camz3 = getpos Campos3 select 2 _cam camsetpos [_camx3,_camy3,_Camz3+300] _cam camcommit 15 ~1 _cam camsettarget Camtrg3 _cam camcommit 5 ~5 _cam camsettarget camtrg4 _cam camcommit 5 ~8 endtrg = true exit Share this post Link to post Share on other sites
evilnate 0 Posted January 20, 2007 Yes I like using objects to get positions from too. It's much easier to drag a object around to find the best position. However IMO it's much easier to have the object's name defined in the array. For example: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> _Camera1 = _this select 0 _Camera2 = _this select 1 _Actor1 = _this select 2 _Actor2 = _this select 3 This way you don't have to edit the script when you want to use a different unit name, all you have to do is change the parameters in the line the executes the script fine. For example <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">[cannon, nikon, arnolds, sylvesters] exec cam.sqs Share this post Link to post Share on other sites
super64 0 Posted January 22, 2007 Hey guys, help with a small prob. Im putting 'this exec "camera.sqs" ' in the initiation field. But when i start the mission, my camera view is pinned to the ground. Like im lying down. I can only slide the cam view across the ground. I cant raise the height or lower. Just spin. Ever seen this? It was working so I dont know what changed? Thanks. Share this post Link to post Share on other sites
Lolsav 0 Posted January 22, 2007 My old Cameras Tutorial still works with Arma Link for tutorial Only one thing is diffrent: Where you used to alt+tab to paste, you just need to "shoot" with left mouse button, to record a position. The result will be presented in a clipboard txt file in C:\Documents and Settings\YOURUSERNAME\Local Settings\Application Data\ArmA Share this post Link to post Share on other sites
Maddmatt 1 Posted January 22, 2007 Good that they got rid of those ugly camera effects from the triggers. Those badly made cutscenes were painful to watch. Share this post Link to post Share on other sites