Home   Help Search Login Register  

Author Topic: Disable/enable AI pilot action on ground  (Read 641 times)

0 Members and 1 Guest are viewing this topic.

Uldics

  • Guest
Disable/enable AI pilot action on ground
« on: 28 Nov 2004, 08:13:57 »
I am desperately working on the old problem of making AI planes able to take off at any airport or flat place. When AI is on the ground it steers to the default airport through anything and as it cannot go through anything it either chooses to die or keeps stubbornly trying to push all woods away. So ground manouvering could be scripted, but the stupid AI keeps interfering.

Is there a way to disable and then reenable AI ability to steer?

Setfuel 0 is not working.

Offline Wildebeest

  • Contributing Member
  • **
  • The time the wildebeest ruled the Earth.
Re:Disable/enable AI pilot action on ground
« Reply #1 on: 28 Nov 2004, 10:00:40 »
Maybe you could use setvelocity on an empty aircraft and then, as the plane has reached take off speed, you place the AI guy in the aircraft by the moveindriver command. I'm not sure though, since I've never experimented with aircrafts.
Weeee...

Uldics

  • Guest
Re:Disable/enable AI pilot action on ground
« Reply #2 on: 28 Nov 2004, 11:40:27 »
That was my first idea and it works, but I need in my mission, that enemy is getting in and sitting in the plane, so a player can watch from relatively close distance and see a pilot in it. I need it to be perfect. ;D
Also in intro/outro could be very cool to make them takeoff from a carrier or whatever with a camera showing the pilot inside. Just to amaze other mission makers  ;D
As long as I am come, is AI sitting in plane, taking off with setvelocity and setpos in the detach moment. But I have also setdir, which kinda looks uncool and shaky, especially at low speed.

Unnamed

  • Guest
Re:Disable/enable AI pilot action on ground
« Reply #3 on: 28 Nov 2004, 14:50:48 »
AFAIK You cant, but there are a few things that can affect the AI Pilot. So dont discount the idea, just yet.

In the mean time SetDir the Carrier to the point the aircraft is trying to steer towards, and you will get a nice straight takeoff.

Or wait a few weeks for a less than perfect alternative.

Uldics

  • Guest
Re:Disable/enable AI pilot action on ground
« Reply #4 on: 28 Nov 2004, 16:23:31 »
My "carrier" is actually an island. Until now.  ;)
What are those things, that affect the AI?
Maybe it is possible inmission to change the coordinates or disable the default airport as AI target. Without new addons.

Unnamed

  • Guest
Re:Disable/enable AI pilot action on ground
« Reply #5 on: 01 Dec 2004, 12:48:09 »
Quote
What are those things, that affect the AI?

Speed and height are the main ones, cant say for sure on the speed yet. But under 30m altitude the AI will try and turn to the runway defined in the config.

I'm trying to work out how to get the AI thinking it's flying at a different height, than it actually is.