May 17, 2021, 09:45:50 AM

Author Topic: AIFindDropAttackTarget() always returning false?  (Read 606 times)

SuXue

  • Resident
  • **
  • Posts: 39
    • View Profile
AIFindDropAttackTarget() always returning false?
« on: April 11, 2010, 08:30:22 AM »
When I try to control the drop attack function, I notice this strange phenomenon which prevents the AI from using it.

Please let me know if any of you has been successful in using it. Thanks!

AlsoKnownAs

  • Member
  • ***
  • Posts: 42
  • Having a drink in some bar far from Earth
    • View Profile
Re: AIFindDropAttackTarget() always returning false?
« Reply #1 on: April 11, 2010, 09:19:47 AM »
What I found in the MeleeAI.galaxy

Quote
// for now I'm not counting e_attackState_DropAttack as attacking, it is a specialized attack
    // and not easy for other AI's to coordinate with it

It does not literally means "Drop the attack", funny  :D .

Kernel64

  • Sr. Member
  • ****
  • Posts: 207
    • View Profile
Re: AIFindDropAttackTarget() always returning false?
« Reply #2 on: April 11, 2010, 11:20:26 AM »
I thought drop attacks only occur when the opponent has no base that doesn't require transports?

Or maybe it returns false if the AI has no transports?

Chriamon

  • Resident
  • **
  • Posts: 28
    • View Profile
Re: AIFindDropAttackTarget() always returning false?
« Reply #3 on: April 12, 2010, 06:52:31 AM »
Pretty sure it is a function for the AI to find where it should target its dropattack; that is, finds a base to send a transport with the dropwave's units to perform a drop. It doesn't have to be an island base I think.

SuXue

  • Resident
  • **
  • Posts: 39
    • View Profile
Re: AIFindDropAttackTarget() always returning false?
« Reply #4 on: April 12, 2010, 07:37:21 AM »
Pretty sure it is a function for the AI to find where it should target its dropattack; that is, finds a base to send a transport with the dropwave's units to perform a drop. It doesn't have to be an island base I think.

And the problem is, the function sometimes return false even if there are good drop-off points in the enemy's base