Home   Help Search Login Register  

Author Topic: Pilot eye-camera  (Read 1084 times)

0 Members and 1 Guest are viewing this topic.

Jus

  • Guest
Pilot eye-camera
« on: 26 Oct 2002, 05:07:18 »
Just exactly how can I make a camera that shows the world from a pilot's eyes? Sure I can see the aircraft from nice perspectives but I just can't see the world from cockpit! Switchcamera does it, but it shows the crosshair and all so it's not suitable for a cutscene. Any suggestions?

Offline MeltedAd

  • Members
  • *
  • Damn it all to the bowls of bloody hell
Re:Pilot eye-camera
« Reply #1 on: 09 Nov 2002, 15:35:53 »
I found this from devilchaser

_cama CameraEffect ["Internal","Back"]
_cama CamSetFOV 1.5
_cama CamCommit 0
introcue1_1=false
;follow chopper
#camloop1
_camx = getpos chopper select 0
_camy = getpos chopper select 1
_camz = getpos chopper select 2
_chopperdir = getdir chopper
_choppersin = (sin _chopperdir)
_choppercos = (cos _chopperdir)
_camtargetx = _camx + (500 * _choppersin)
_camtargety = _camy + (500 * _choppercos)
_cama camsettarget chopper
_cama camsetrelpos [0,+5,-0.6]
_cama CamSetTarget [_camtargetx,_camtargety,_camz]
_cama camcommit 0
~0.01
?(!introcue1_1):goto "camloop1"

All you need to do is change the camsetrelpos as each aircraft has a different position.

Hope this helps ya ;D

major asshole

  • Guest
Re:Pilot eye-camera
« Reply #2 on: 10 Nov 2002, 01:59:37 »

G'day

How about naming the pilot say, p1
and then use  p1 SwitchCamera "internal"
this should give a first person perspective for the pilot
just a thought

L8R

major asshole

  • Guest
Re:Pilot eye-camera
« Reply #3 on: 11 Nov 2002, 06:59:34 »
G'day

Nope didn't work right.
Did it with the  chopper and it worked ok

h1 switchcamera "internal"

where h1 is the name of the chopper

hth

L8R