Forcing AI to Target Enemies
3 Jun 2021, 15:51 PM
#1
Posts: 100 | Subs: 1
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
Posts: 14
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.
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.
11 Oct 2021, 12:02 PM
#3
Posts: 100 | Subs: 1
Thanks for the reply. I've done some tests and whilst they do look promising the AI doesn't seem to want to use the ability if its not within the range of the ability itself regardless of what tactic_max_override I set. I'm probably doing something wrong though.
For future reference this is what I've been using so far as an always_on ability. The scar function orders the units towards whatever enemy is within the radius. The main issue is that the AI will order stop in most situations which ends up making the zombies inch towards whatever their target is.
For future reference this is what I've been using so far as an always_on ability. The scar function orders the units towards whatever enemy is within the radius. The main issue is that the AI will order stop in most situations which ends up making the zombies inch towards whatever their target is.
11 Oct 2021, 15:49 PM
#4
Posts: 14
Thanks for the reply. I've done some tests and whilst they do look promising the AI doesn't seem to want to use the ability if its not within the range of the ability itself regardless of what tactic_max_override I set. I'm probably doing something wrong though.
Hmm, the default satchel charge for penal battalions only has a range of 10, but if you see the ai_ability for that ability it searches the targets as far as 30 range and it definitely works that way and the A.I Penal squad will close and go towards the target.
PAGES (1)
1 user is browsing this thread:
1 guest
Livestreams
25 | |||||
20 | |||||
2 | |||||
309 | |||||
200 | |||||
31 | |||||
5 | |||||
5 | |||||
4 | |||||
3 |
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.831222.789+37
- 2.34957.860+14
- 3.589215.733+4
- 4.1099614.642-1
- 5.280162.633+8
- 6.305114.728+1
- 7.916405.693-2
- 8.271108.715+22
- 9.721440.621+3
- 10.1041674.607-2
Replay highlight
VS
- cblanco ★
- 보드카 중대
- VonManteuffel
- Heartless Jäger
Einhoven Country
Honor it
9
Download
1231
Board Info
592 users are online:
592 guests
1 post in the last 24h
7 posts in the last week
39 posts in the last month
7 posts in the last week
39 posts in the last month
Registered members: 49063
Welcome our newest member, jennifermary
Most online: 2043 users on 29 Oct 2023, 01:04 AM
Welcome our newest member, jennifermary
Most online: 2043 users on 29 Oct 2023, 01:04 AM