Home   Help Search Login Register  

Author Topic: Cam to target pilot  (Read 481 times)

0 Members and 1 Guest are viewing this topic.

Anton VonE

  • Guest
Cam to target pilot
« 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

Knut Erik

  • Guest
Re:Cam to target pilot
« Reply #1 on: 28 Mar 2003, 09:53:51 »
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

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:Cam to target pilot
« Reply #2 on: 28 Mar 2003, 15:40:26 »
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
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

Anton VonE

  • Guest
Re:Cam to target pilot
« Reply #3 on: 29 Mar 2003, 04:05:40 »
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

Knut Erik

  • Guest
Re:Cam to target pilot
« Reply #4 on: 29 Mar 2003, 19:14:40 »
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...

Code: [Select]
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
« Last Edit: 29 Mar 2003, 19:15:40 by Knut Erik »