OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Jus 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?
-
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
-
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
-
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