Login

russian armor

Forcing AI to Target Enemies

3 Jun 2021, 15:51 PM
#1
avatar of Sie_Sayoka
Modmaker Badge

Posts: 14

I'm almost finished with my zombie mod and I'm having an issue with getting the AI to close the distance and attack units near it. Often the AI just sits while being attacked or runs towards capture points. I've tried numerous ways through abilities and actions but I couldn't get any to work. What I want is to have the units close in on the attackers and chase them.
14 Sep 2021, 23:48 PM
#2
avatar of Zycat

Posts: 7

Create a dummy ability that only the A.I can view and use, give it the same range as your attack (presumably very short melee range) and pending_ability_out_of_range_behaviour to chase.

Create a new ai_ability file for that ability, in the tactic_max_range_override set it to whatever aggro range you want. Don't forget to set the priorities, and maybe target filters.
1 user is browsing this thread: 1 guest

Ladders Top 10

  • #
    Steam Alias
    W
    L
    %
    Streak
Data provided by Relic Relic Entertainment

Replay highlight

Board Info

261 users are online: 261 guests
42 posts in the last 24h
334 posts in the last week
2347 posts in the last month
Registered members: 25249
Welcome our newest member, greenolivia
Most online: 1221 users on 25 Feb 2020, 12:03 PM