OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Anton VonE on 28 Mar 2003, 02:35:17
-
I'm making a cutscene, and I placed an empty helicopter and moved a pilot (p1) in using moveincargo. The chopper moves during the scene. At some point, I'd like the pilot to be targeted, however, what happens is that the area on the map where i initially placed the pilot is shown.
Any solutions?
Anton
-
Try this..
Yourcam camsettarget yourchopper
This will make the camera point at the chopper instead of the pilot.
The camera can't point at the pilot when he is in the chopper, so make the camera point at the chopper!
;D ;D
-
Once i've tried to settarget my camera onto a named unit,
which was entering a jeep during the cutscene.
As he entered the jeep, the camera kept stuck, where he
entered the vehicle.
I could fix this by using: vehicle unitname
Maybe it also works the other way around (can't test this
now because i'm at work).
Try: camsettarget driver choppername
~S~ CD
-
Hmmm....there's no way at all? I know how to target the chopper, but I wanted a closeup of the right side of the pilots face.
Ah well....
Anton
-
Hmm. You can create a loop script and play around with the setcamrelpos command...
Do you want me to write you a script?
Aw! Okay then ;D. Since you insisted...
cam1 = "camera" camcreate [0,0,0]
cam1 cameraeffect ["internal","back"]
#loop
cam1 camsettarget ChopperOrPilot (You'll have to check bouth methods)
cam1 setcamrelpos [2,2,2] (You must play around with the values here to get the dezired effect)
cam1 setcamfov 0.7
cam1 camcommit 0
? stop : goto "end"
goto "loop"
#end
exit
Then you can save this as chopper.sqs or whatever you want and exec it from the game.
If stop=true the script will exit.
Just ask for further explanation if you need it!
Good luck! ;D