OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: O Neil on 30 Mar 2003, 10:34:45

Title: Camera in car
Post by: O Neil on 30 Mar 2003, 10:34:45
Hey

How do I get the camera either in or Moving with the car?

O Neil ;)
Title: Re:Camera in car
Post by: Knut Erik on 30 Mar 2003, 11:19:59
I wrote a similar script to AntonVonE.


Code: [Select]
cam1 = "camera" camcreate [0,0,0]
cam1 cameraeffect ["internal","back"]
#loop
cam1 camsettarget CarOrDriver (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

Try this script.
And.. When stop=true the script will exit.

 8)
Title: Re:Camera in car
Post by: O Neil on 31 Mar 2003, 07:14:53
Thxs, I'll try it ;)

O Neil