Home   Help Search Login Register  

Author Topic: Camera target  (Read 589 times)

0 Members and 1 Guest are viewing this topic.

Offline Alan34

  • Members
  • *
  • Praise the Lord and pass the Carl Gustav
    • Red Devils
Camera target
« on: 12 Aug 2003, 16:50:56 »
Assuming I have a chopper named Huey and I want to target the camera on the gunner of that chopper;  in the past I used the format Hueyg to reference the gunner in scripts but this does not seem to work when using camera's, has anyone done this?

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:Camera target
« Reply #1 on: 13 Aug 2003, 02:26:47 »
When a unit boards a vehicle, their position (obtained with the getpos command) is actually back where they got in!!

So as far as setting the camera to target the gunner, it can't really be done (as far as I know ;)).

It is however possible to target co-ordinates, rather than a unit/vehicle. So what you could do is work out where the gunner is in relation to the centre of your vehicle, and target those co-ordinates ;)

GrimMonkey

  • Guest
Re:Camera target
« Reply #2 on: 20 Aug 2003, 17:20:01 »
Or you can just name the pilot and gunner and do the unitname moveingunner vehiclename, the same for the pilot. And have the camera be set on the gunner! :)

Offline Alan34

  • Members
  • *
  • Praise the Lord and pass the Carl Gustav
    • Red Devils
Re:Camera target
« Reply #3 on: 20 Aug 2003, 18:35:49 »
I tried that before...for some reason, the moveingunner fellow jumps out of the chopper.