Home   Help Search Login Register  

Author Topic: turning vehiclecam  (Read 635 times)

0 Members and 1 Guest are viewing this topic.

Offline Blanco

  • Former Staff
  • ****
turning vehiclecam
« on: 06 Mar 2003, 00:03:37 »
code :


_relpos = [0,-3,1.5]

_n = 0
#loop
_camera = "camera" camcreate [0,0,0]
_camera cameraeffect ["internal","back"]

_camera camsettarget truck
_camera camsetrelpos _relpos
_camera camcommit 0.0001
@camcommitted _camera
_n = _n + 1
?(_n < 500) : goto "loop"


....

This creates a vehiclecam 3 meters behind the truck and it runs 500 times before it stops, right?

Q : How can I make it rotate around the truck while it's moving at the same camsetrelpos  (I hope U understand what I mean  :P)

It's possible there are some typo's here, but I don't have OFP with me right now..





Search or search or search before you ask.