Jump to content
Sign in to follow this  
AzureNight

Setting aircraft height and speed

Recommended Posts

How would I do this? I want to have helicopters going at a certain minimum height and a certain speed too. I remember this being available in OFP. With regular waypoints (such as Seek and Destroy), choppers and planes constantly crash into buildings or trees.

Share this post


Link to post
Share on other sites

this flyInHeight 600; That will set the height I think. Speed is easily set with waypoints.

Share this post


Link to post
Share on other sites

if you want an inital height and velocity you can use this additionally:

this setPos [getPos this select 0,getpos this select 1,600];
this setVelocity [(vectorDir this select 0)*100,(vectorDir this select 1)*100,(vectorDir this select 2)*100];

in this example 600 is the height and 100 the initial velocity

  • Like 1

Share this post


Link to post
Share on other sites

I've put the this setVelocity [(vectorDir this select 0)*25,(vectorDir this select 1)*25,(vectorDir this select 2)*25]; command in the init of some helicopters. It has only worked once for some reason. Is it incompatible with certain commands?

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  

×