Home   Help Search Login Register  

Author Topic: Ai Heli pilots and shilkas  (Read 912 times)

0 Members and 1 Guest are viewing this topic.

Bad Maniac

  • Guest
Ai Heli pilots and shilkas
« on: 20 May 2003, 14:23:13 »
I have two AI flewn helicopters AH-1, and an eastern tank platoon, 7 T-80's and a Shilka (two groups following each other basically.)
I set a destroy waypoint for the copters to kill the tanks, but they get insta killed by the shilka. How can I sort this out? I tried setting the shilka AI low, and the copter crews on full AI, but it doesn't help.
any advice on this?
Also, why doesn't the AI automatically choose the best weapon? they keep shooting with the machine gun instead of missiles or ffar. How can I soirt that out?

Thanks for any help.
//Martin

NotJimNot

  • Guest
Re:Ai Heli pilots and shilkas
« Reply #1 on: 20 May 2003, 14:45:14 »
in the shilkas init field type

this setbehaviour["careless"]

check the command reference for exact syntax

then the shilka wont fire back even if he is half dead.
if you want him to move then simply remove his ammo or set his ammo to extrememly low

not sure why he fires with the machine gun though.


Offline Igor Drukov

  • Contributing Member
  • **
  • Conscientious Subjector
Re:Ai Heli pilots and shilkas
« Reply #2 on: 20 May 2003, 14:50:35 »
As to the choppers, use the "selectweapon" command to make them fire with whatever weapon you want them to use.

Bad Maniac

  • Guest
Re:Ai Heli pilots and shilkas
« Reply #3 on: 20 May 2003, 17:21:43 »
well, I want the AI to choose weapon, so that once his missiles run out, he'll use ffar, and when he's out of them, he'll resort to the gun.
Also, making the shilka not shoot back isn't a very good solution, since you can choose to play the helicopter crew, and I added the Shilka to make it slightly more interesting basically. But if you choose to play a soldier, the AI still have to destroy the tanks, or you'll be in trouble.

Thanks for your help, any more advice on how to solve this?

//Martin