OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: macguba on 17 Jun 2004, 17:21:45
-
It's an Intro. I've got a chopper flying along with a bunch of loons in the back. What I want is a shot inside the cabin.
Now I can use switchcamera to get the pilot or gunner's eye view, but I want the view of one of the guys in cargo. How do I get that? If I try a switchcamera on any of them directly they are kicked out of the chopper and left on the ground.
Alternatively, is there any way of just getting a shot inside the cabin? I don't care if its from the viewpoint of one of the loons or not.
Many thanks.
-
hey
There should be away but unfortunatly i dont really no...
your lucky you can even get the switchcamera to work, I can't do it... >:(
sim
-
Try my Logiccam (http://www.ofpec.com/yabbse/index.php?board=27;action=display;threadid=16197).
A bit difficult in the beginning but after a while you can create your "cargo/bumper/roof/...-cam" :)
Check the example
http://users.skynet.be/be-studios/LOGICCAM1.0.zip
Works best with land vehicles or units
Planes and choppers can bank and the camera can't follow that properly.
there's a switchcamera tutorial in the editor depot /tutorials
HERE (http://www.ofpec.com/editors/browse.php?browseon=&browsewhat=1&category=1&subcategory=1_-1&numreturn=25&displayformat=0&ofpv=1&searchstring=switchcamera&searchwhat=1&searchlevel=0&searchopts=)
-
Here, try this:
_i =0
#loop
_i = _i + 1
_camera camSetTarget YourHeli
_camera camSetRelPos [0, -5, 0]
; -> This sets the camera relative to your chopper (x, y, z).
_camera camSetFOV 0.624
_camera camCommit 0
~0.01
?(_i<= 200): goto "loop"
This assumes you have a camera created already. Play around with the x,y,z adjustments to get the right shot.
Change the max _i value to keep the shot for a longer period of time.
This small piece of code assumes the chopper doesn't change direction too much, preferably keep a straight line.
Gl!
-
Thanks guys. I have the switchcamera tute. The chopper will be moving in a straight line so that helps. I'll try these out.
-
OK guys all fixed now, many thanks. Blanco, your logiccam script was just the thing - works fine on a chopper flying straight and level. It's for the Intro of my Un-Impossible Mission, final version should hit the beta forum in the next few days.