Jump to content
Sign in to follow this  
thetrooper

altitude of vehicle

Recommended Posts

Hi all. I remember is Arma2 that you can create a height for an object using the following.

en1 setPos [getPos en1 select 0, getPos en1 select 1, 500];

I've got a bug in my script which I can't find at the moment, don't know if this script still works in Arma3?

Basically I've spawned an aircraft but want it to be flying.

Share this post


Link to post
Share on other sites

You can use these two ways how to do this:

  • via flyInHeight
  • via the bottom side of the window for entering units (F1) - Altitude field

Share this post


Link to post
Share on other sites

ok cool. I noticed that there's a drop down box for special. Is there any way to script 'flying' option?

Share this post


Link to post
Share on other sites

Yes, in the editor is a drop down box for Special. You can click in this box on "Flying" option, and your vehicle is in the air.

Share this post


Link to post
Share on other sites

Yeah that's fine. I managed that one. I actually used

en1 setPos [getPos en1 select 0, getPos en1 select 1, 500

in the end which does work in an SQF file as the vehicle is spawned. Problem is it starts off at that height. But AI decides to change it and go for a dive straight away. Don't know how to solve that one.

Share this post


Link to post
Share on other sites

AI want always adapt the height of helicopters. In this case, use flyInHeight script. For me this works good with AIs too. ;)

And you have in the script small bug. Correctly:

en1 setPos [getPos en1 select 0, (getPos en1 select 1) + 500];

:rolleyes:

Edited by [CSLA]LUKI

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×