Home   Help Search Login Register  

Author Topic: camsettarget on unit in vehicle problem  (Read 978 times)

0 Members and 1 Guest are viewing this topic.

Offline Case

  • Members
  • *
camsettarget on unit in vehicle problem
« on: 14 Jun 2007, 01:36:45 »
I have read over the cam scripting tutorials here, and I got some good camera scripts working.

I have found a strange problem though that I haven't been able to resolve.

If I set the cam target to a unit that has already mounted a vehicle, the cam positions itself where the unit boarded the vehicle.

The way my script is going to work, the unit may or may not be in a vehicle at the time of the cam script firing, so I can't just target the vehicle.

Is there a different command I can use, or will I need to look into checking what vehicle the unit is in, and targetting that vehicle?

Thanks!

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: camsettarget on unit in vehicle problem
« Reply #1 on: 14 Jun 2007, 03:08:09 »
cam camsetTarget vehicle unit

vehicle unit when unit is not in any vehicle is always the unit itself.

Offline Case

  • Members
  • *
Re: camsettarget on unit in vehicle problem
« Reply #2 on: 14 Jun 2007, 19:18:13 »
Perfect.

Thanks Mandoble.