Jump to content
Sign in to follow this  
thetrooper

Start Jet at a height

Recommended Posts

Is there anyway to start the player in a jet at a certain height?

Always seems to start around 120m.

Below script doesn't work.

this flyinheight 2000;

Share this post


Link to post
Share on other sites

this setPos [(getPos this) select 0 , (getPos this) select 1, 2000];

Share this post


Link to post
Share on other sites
this setPos [(getPos this) select 0 , (getPos this) select 1, 2000];

No need to do that in A3 any longer. You can set the elevation in edit unit screen, lower left corner.

Share this post


Link to post
Share on other sites

I don't think it works for placing objects at a negative elevation though (ie: in the ground) whereas the setpos line allows you to do this (just an FYI)

Share this post


Link to post
Share on other sites
Is there anyway to start the player in a jet at a certain height?

Always seems to start around 120m.

Below script doesn't work.

this flyinheight 2000;

One more thing make sure and set the formation to flying in the editor so the object will start in the air with its engines on and not fall from the sky. I tried the elevation feature in the editor and had mixed results, the setPos command works when all else fails.

Trooper you might want to use that flyinheight if you want your plane or heli to remain at that altitude, 2000 meters in your example, other wise the aircraft will dive down and fly at about 120 meters AGL. flyinheight is like setting a minimum AGL altitude for the aircraft. This command is really only needed for AI pilots.

Share this post


Link to post
Share on other sites

Alternatively, you can toy with setVelocity [0,0,500]. Change numbers and see the outcome.

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  

×