Home   Help Search Login Register  

Author Topic: Scrambling Fighters using ai  (Read 546 times)

0 Members and 2 Guests are viewing this topic.

Dog - RM

  • Guest
Scrambling Fighters using ai
« on: 10 Sep 2004, 16:16:33 »
I am making a rather large single player mission (mp will lag too much on ordinary computers) involving a failed first wave invasion leaving 4 Special forces members to fight through and hopefully clear a path for the next wave.

Anyway at one point in the mission I want the enemy AI to scramble 4 fighters. This involves the pilots running to aircraft (SU 25) getting in and taking off on a search and destroy. I am stumped at this point because I do not know how to get the ai to takeoff in the planes.

I tried waypoints and my own lame attempt at scripting  :-[ with no luck .Had a look around forum but could not find what I needed. Anyone know of a script that can do it?

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Scrambling Fighters using ai
« Reply #1 on: 10 Sep 2004, 17:02:09 »
No script required.

You must use a working runway:  there is a maximum of one per island and the runway always goes north-south.   Place your aircraft on the taxiway facing south.     Give the pilots a hold waypoint (synchroed to the switch trigger), a getin waypoint attached to the aircraft, and move or S&D or whatever you want in the target area.   They will figure out the rest for themselves.

Make it work with just one first.    You may be better putting each plane in its own group rather than having them all in one group.   Experiment.
Plenty of reviewed ArmA missions for you to play

Offline Tyger

  • Former Staff
  • ****
  • I was at OFPEC when it still had dirt floors...
    • OFPEC
Re:Scrambling Fighters using ai
« Reply #2 on: 10 Sep 2004, 22:37:03 »
or u can make a small script, if u want.
just place a game logic at the point u want them to move
then make the follwing script:
Code: [Select]
loon_1 AssignAsDriver plane_1
loon_2 AssignAsDriver plane_2
loon_3 AssignAsDriver plane_3
loon_4 AssignAsDriver plane_4
@ (unitReady loon_1) && (unitReady loon_2) && (unitReady loon_3) && (unitReady loon_4)
loon_1 doMove getPos gl_1
loon_2 doMove getPos gl_2
loon_3 doMove getPos gl_3
loon_4 doMove getPos gl_5
"People sleep soundly at night only because rough men stand ready to do violence on their behalf." - George Orwell

MSG Mike Everret - We Will Never Forget - '75-'08

Dog - RM

  • Guest
Re:Scrambling Fighters using ai
« Reply #3 on: 11 Sep 2004, 01:41:55 »
Thanks lads. Kind of makes sense now that the planes always went cross country to the second airport on Sarugao. Will give your ideas a shot. Thanks again.


edit: Works a treat!!! thanks again
« Last Edit: 11 Sep 2004, 02:02:57 by Dog - RM »