Author Topic: AI Problem in Custom Mission  (Read 1507 times)

0 Members and 1 Guest are viewing this topic.

Offline CP5670

  • Dr. Evil
  • Global Moderator
  • 212
  • 142857
AI Problem in Custom Mission
I seem to be having a strange problem in a custom-made mission of mine where the AI event operators ai-disable-ship and ai-destroy-subsystem do not have any effect on AI wingmen. These operators appear to just clear their orders and make them go into the "engage enemy" mode. It works fine when I order the AI fighters in the game to perform the same actions, but I would like to have them attack the subsystems automatically.

Any ideas on how to get rid of this problem? Thanks in advance.

 

Offline TheVirtu

  • Firedancer
  • 28
    • http://autoassault.edgegaming.com
AI Problem in Custom Mission
You could just goto the initial orders and choose destroy subsystem maybe.
Project Leader of the Ascension of Beyond Campaign
"There was a time of peace, this time is over, peace will be paid for in blood."
Site Director of the Auto Assault Outpost- http://autoassault.edgegaming.com
Site Director of the Darkspace Connection - http://www.3dap.com/darkspace
Former Webmaster of i82.co.uk - Shut Down 2/12/03
"If HLP wants your developing, they'll promote you to Senior Engineer, now shutup and focus!" - Shi
Think of the Coke machines! What did they ever do to you![/b]

 

Offline CP5670

  • Dr. Evil
  • Global Moderator
  • 212
  • 142857
AI Problem in Custom Mission
That didn't seem to do anything, unfortunately.

 

Offline TheVirtu

  • Firedancer
  • 28
    • http://autoassault.edgegaming.com
AI Problem in Custom Mission
Dumbass AI, only the Warships know how to kill things  

------------------
Head of the Beyond Campaign for FS2.
The year 2375, The Beginning, Deneb. The ship, the GTD Messana, do you know where the NTF is?
Project Leader of the Ascension of Beyond Campaign
"There was a time of peace, this time is over, peace will be paid for in blood."
Site Director of the Auto Assault Outpost- http://autoassault.edgegaming.com
Site Director of the Darkspace Connection - http://www.3dap.com/darkspace
Former Webmaster of i82.co.uk - Shut Down 2/12/03
"If HLP wants your developing, they'll promote you to Senior Engineer, now shutup and focus!" - Shi
Think of the Coke machines! What did they ever do to you![/b]

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
AI Problem in Custom Mission
Try giving them a clear orders SEXp then 1 second later give them the new order. Maybe there is some conflict between an old order and the new one you`re trying to give them. That wouldn`t show up when you order them in game since player orders are higher priority than scripted ones
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline CP5670

  • Dr. Evil
  • Global Moderator
  • 212
  • 142857
AI Problem in Custom Mission
Thanks for the tip; I'll try that out and see if it works.

 

Offline Eth

  • 25
AI Problem in Custom Mission
Hey CP, long time no 'c'  

To get AI to do exactly what you tell them to, you need to check the "No Dynamic Goals" box (also known as Disable Self-preservation Instinct) in the Misc properties of the ships.  Without doing this, no matter what their orders are, and particularly with attack orders, if they feel threatened by something (be it a ship, a turret, or whatever) they will stop doing what they were told to do and go about dodging and attacking what they feel threatened by.

A further caveat about AI and attack orders... if the object they are told to attack is too far away (seems something in the range of 3500m or so), they will still just sit there doing nothing.  So if you are having them attack something farther away than that, you can add a waypoint path point for them to fly to, in order to get them within range of their "attack vision".  Just make the "waypoint-paths-once" order the same priority as the attack order so that as soon as they fly within range (or if by chance the object to be attacked is within range do to events unfolding differently than you originally planned), they will commence attacking.

The only down side to having to use the "Disable Self Preservation" option is that you must provide them with orders to get them to do anything the entire mission.  After they have performed their basic task(s), you can get them to revert to "Self Preservation Mode" by doing a "clear-goals", following by a "attack any ship".

EE redons his lurker suit

 

Offline CP5670

  • Dr. Evil
  • Global Moderator
  • 212
  • 142857
AI Problem in Custom Mission
Woohoo! So that was the problem; the distance between the wing and their target was around 6000m. :P

Thanks a lot for the assistance, Eth!