OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: SniperUK on 27 Jun 2007, 23:50:32

Title: Creating Unit Rotated
Post by: SniperUK 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.
Title: Re: Creating Unit Rotated
Post by: Mr.Peanut on 28 Jun 2007, 00:21:30
setDir, setVectorDir, setVectorUp  :blink:
Title: Re: Creating Unit Rotated
Post by: Mandoble 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.