OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Raptorsaurus on 02 Feb 2005, 06:31:21
-
I want to do a cutscene dialog between units in a vehicle, but I cannot get the camera work right (it will not target units in the vehicle). So how does one do in vehicle cutscenes ( like two guys in the back of a truck talking to each other)?
-
_cam camSetTarget dude
#loop
_cam camRelPos [0,0.4,1.6]
_cam camCommit 0
?condition : goto"endLoop"
~0.001
goto"loop"
-
Or use my logiccam script (see my sig) :)
-
Always prefer usin my own scripts in my missions or I dn't feel they're truly mine. But the choice is still there.
-
mkay, well if i remember this correctly, you need this (http://ofpec.com/editors/resource_view.php?id=82).
cheers :)
-
Blanco is right, use his logiccam script. You can get any shot you like inside a vehicle. switchCamera gives you only one view.
Xcess I have some sympathy with that view. However, there is nothing wrong with a collaborative approach, and no virtue in reinventing the wheel.
-
The problem is that the camera stops tracking the untis when they board the vehicle (I would rather not have to delete the camera and then recreate it after they board). But I will try the logicam. I have used it for other applications, but I had not thought of using it between units in a vehicle. I think that will work because then the GLs are the camera target and not the units, so the camera will not "lose lock" because of vehicle boarding.
P.S. I just realized that I should have posted this in the camera/cutscene forum (my bad). :-\
-
OK, I am tracking the units with game logics and I am then making the game logics the target for the camera. (The same general idea as in logicam). This gives me seamless transition from viewing the units outside the vehicle to inside it. Thank for all the suggestions.