Home   Help Search Login Register  

Author Topic: Creating Unit Rotated  (Read 990 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.