OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Captain Crunch on 10 Apr 2007, 23:34:08

Title: Another editing problem!
Post by: Captain Crunch on 10 Apr 2007, 23:34:08

Hi people.

I am trying to correct an inconvenient but don't know how to do it or if it's even possible. I want to put some M2s guarding a bridge. The M2s are situated on the terrace of houses close to the bridge. The houses are build on slopes. The houses are straight but when I use in the Init Field of the M2s:

Code: [Select]
This SetPos [GetPos This Select 0, GetPos This Select 1, (GetPos This Select 2 +5)]
But the machine guns take the angle of the terrain so it doesn't sit straight on the house. Is there a way to change the angle? I was also planning to place other objects around too so a solution would help a lot. Anyone knows of a way to do this? Thank You in advance.

Crunch
Title: Re: Another editing problem!
Post by: Mr.Peanut on 11 Apr 2007, 00:02:01
I do not know if they will stay this way but try this setVectorUp [0,0,1].
Title: Re: Another editing problem!
Post by: Captain Crunch on 11 Apr 2007, 00:11:59
YES!

Mr. Peanut, thank You for the swift answer. And it works perfect! Problem solved