Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: camsettarget on unit in vehicle problem  (Read 1523 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.