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: Creating Unit Rotated  (Read 1676 times)

0 Members and 1 Guest are viewing this topic.

Offline SniperUK

  • Members
  • *
  • I'm a llama!
Creating Unit Rotated
« on: 27 Jun 2007, 23:50:32 »
Hi guys got a question for you, i am looking to create an ammo crate and a few other objects by script but whenever i create them they appear to horizontally, is there any command i can use so rather than spawning them at 90 degrees it spawns them at 180? i know u can rotate items in the editor but can not see a command to do this via script. Thanks in advance.

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re: Creating Unit Rotated
« Reply #1 on: 28 Jun 2007, 00:21:30 »
setDir, setVectorDir, setVectorUp  :blink:
urp!

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: Creating Unit Rotated
« Reply #2 on: 28 Jun 2007, 13:04:40 »
Yep, if you dont mean to rotate it in its Z axis, the just use setDir, else, use SetVectorUp.