Jump to content


Photo

Won't attack gate.


  • Please log in to reply
6 replies to this topic

#1 Jack

Jack
  • Members
  • 24 posts

Posted 24 October 2009 - 05:58 PM

Made a map.. has a gate.. AI wont attack gate.. AI will only attack the first wall they see.

How can I fix this?

#2 Puzzler33

Puzzler33
  • Members
  • 226 posts

Posted 24 October 2009 - 11:31 PM

Make sure the gate is an enemy to the AI.
3 solutions:
Put a tactical marker 'Gate' where it gate is (this may not work depending on whether this feature is redundant or not (it probably isn't)).
Create an area around the gate and make a non-deactivating script along the lines of IF Team 'Team/Player_X' (X= AI team) enters area '(area)' THEN Unit ref 'attack gate' closest unit to waypoint 'gate waypoint' on team 'Team/Player_X' - then another script - IF Unit 'gate' has health above 0 percent THEN unit 'attack gate' attacks unit 'gate'. *This will not work so well for many attackers.
Make the walls on team civilian so the only thing the enemy can attack is the gate.

I suggest the 1st and 3rd option.
Posted Image

#3 JUS_SAURON

JUS_SAURON

    El Shaddai

  • Members
  • 1,581 posts
  • Location:Trinidad
  • Projects: BFME2 MOD - Power Of The Ring
  •   INI Coder

Posted 25 October 2009 - 10:57 AM

Make the walls on team civilian so the only thing the enemy can attack is the gate.

I suggest the 1st and 3rd option.

The third option will work best
Open the Minas Tirith map or the Helms Deep map
These are maps with a 'CASTLE DEFEND' type structure /gameplay
So the only place AI can attack first is the CLOSED gate
Ai are stupid and tend not to follow real world scenarios
They don't <Go for the Gate> but just <Attack anything AI feel like>
So force them into attacking the gate to get to the compound

#4 Crusard

Crusard

    Local n00b

  • Project Team
  • 483 posts
  • Location:Buenos Aires, Argentina
  • Projects:Crusard's Tower Defense
  •  Poor feedback kills mapper.

Posted 25 October 2009 - 05:46 PM

Tactical markers don't work :S (they're old bfme1's scripted AI things)

Usually, the computer will attack anything on its path until it reaches your base, so it is possibly a problem with the gate object itself: some of the gate placeables ingame aren't destructable.

Try placing a gate for the enemy, and see if you can really damage it to make sure.
Also, like Puzzler said you should set the walls to indestructible or TeamCivilian.

Posted Image


#5 Puzzler33

Puzzler33
  • Members
  • 226 posts

Posted 27 October 2009 - 12:15 PM

Also, like Puzzler said you should set the walls to indestructible or TeamCivilian.


Except I think if you make them indestructible and keep them on the AI's enemy's team then the AI may still try to attack the walls and the result would be even worse...?
Posted Image

#6 Crusard

Crusard

    Local n00b

  • Project Team
  • 483 posts
  • Location:Buenos Aires, Argentina
  • Projects:Crusard's Tower Defense
  •  Poor feedback kills mapper.

Posted 27 October 2009 - 02:31 PM

Also, like Puzzler said you should set the walls to indestructible or TeamCivilian.


Except I think if you make them indestructible and keep them on the AI's enemy's team then the AI may still try to attack the walls and the result would be even worse...?


Unselectable then, just in case :crazed:

Posted Image


#7 JUS_SAURON

JUS_SAURON

    El Shaddai

  • Members
  • 1,581 posts
  • Location:Trinidad
  • Projects: BFME2 MOD - Power Of The Ring
  •   INI Coder

Posted 28 October 2009 - 11:52 AM

Make them TeamCivillian AND Indestructable AND unselectable
Make the Gate Player_1 etc
Basically make the Gate the Only thing the AI can Attack ,
Except for what's in the compound Walls

I'm sure you got the solution by now :p




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users