# Quick question about AI and if creature is peaceful or violent

**URL:** <https://forums.unrealengine.com/t/quick-question-about-ai-and-if-creature-is-peaceful-or-violent/38949>\
**Category:** ARK: Survival Evolved\
**Tags:** unreal-engine, Ark:-Survival-Evolved\
**Created:** [August 19, 2015, 1:42am UTC](https://forums.unrealengine.com/t/quick-question-about-ai-and-if-creature-is-peaceful-or-violent/38949 "2015-08-19T01:42:40Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_88e6c92f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_88e6c92f](https://forums.unrealengine.com/u/anonymous_user_88e6c92f)\
**Post date:** [August 19, 2015, 1:42am UTC](https://forums.unrealengine.com/t/quick-question-about-ai-and-if-creature-is-peaceful-or-violent/38949/1 "2015-08-19T01:42:40Z")

</div>

Just where is it determined if the creature attacks the player on sight (within it’s aggro range) or not? I’ve been browsing the AIController\_BP and Character\_BP files under the Dinos folder for a few hours now, comparing neutral creatures to aggressive ones, and am unable to see just where the variable is that affects this. I see all the single AI behaviors under the CoreAI folder, but that looks like it is just called individually as needed. I’m looking for the one that says “you look tasty, get in my belly.”

Any help or just a quick pointer would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![gankey69](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gankey69](https://forums.unrealengine.com/u/gankey69)\
**Post date:** [August 19, 2015, 1:57am UTC](https://forums.unrealengine.com/t/quick-question-about-ai-and-if-creature-is-peaceful-or-violent/38949/2 "2015-08-19T01:57:12Z")

</div>

would be the graph function

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_88e6c92f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_88e6c92f](https://forums.unrealengine.com/u/anonymous_user_88e6c92f)\
**Post date:** [August 19, 2015, 2:26am UTC](https://forums.unrealengine.com/t/quick-question-about-ai-and-if-creature-is-peaceful-or-violent/38949/3 "2015-08-19T02:26:04Z")

</div>

Near as I can tell, that just says the exact same information in a different way? It is rather interesting, I hadn’t seen that yet. However all the variables are the same and it doesn’t seem to have any extra settings shown. I see many behavior modifiers and saying which routines to use, however both peaceful animals and dangerous ones have mostly the same settings. Must have some sort of generic name that blends in.

---

<div class="post-metadata">

**Author:** ![FGS-Gladman](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/fgs-gladman/32/1148457_2.png) [@FGS-Gladman](https://forums.unrealengine.com/u/FGS-Gladman)\
**Post date:** [August 19, 2015, 3:47am UTC](https://forums.unrealengine.com/t/quick-question-about-ai-and-if-creature-is-peaceful-or-violent/38949/4 "2015-08-19T03:47:37Z")

</div>

> [@bkwrm;358756](#):
>
> Near as I can tell, that just says the exact same information in a different way? It is rather interesting, I hadn’t seen that yet. However all the variables are the same and it doesn’t seem to have any extra settings shown. I see many behavior modifiers and saying which routines to use, however both peaceful animals and dangerous ones have mostly the same settings. Must have some sort of generic name that blends in.

There is a couple check boxes that you can check _I believe_ under DinoStatusComponent\_BP that controls most of the settings surrounding this.

Example & a super mini lesson on booleans: bAttacksCarnos aka the check box is Attacks Carnos (Checked = yes, unchecked = no), the check equating to a 1 (boolean version of yes), and the unchecked equating to a 0 (boolean version of a no).

In addition, you could also also just completely turn down its aggro radius to 0 (I haven’t tried, but in theory it should work) in the same place.

That should take care of most if not all of what you want I think 🙂

Enjoy

---

<div class="post-metadata">

**Author:** ![gankey69](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gankey69](https://forums.unrealengine.com/u/gankey69)\
**Post date:** [August 19, 2015, 4:17am UTC](https://forums.unrealengine.com/t/quick-question-about-ai-and-if-creature-is-peaceful-or-violent/38949/5 "2015-08-19T04:17:56Z")

</div>

any ideas on ownership?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_88e6c92f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_88e6c92f](https://forums.unrealengine.com/u/anonymous_user_88e6c92f)\
**Post date:** [August 19, 2015, 5:11am UTC](https://forums.unrealengine.com/t/quick-question-about-ai-and-if-creature-is-peaceful-or-violent/38949/6 "2015-08-19T05:11:56Z")

</div>

That’s exactly what I’m looking for. Sadly All the DinoStatusComponent\_BP files only go over things like stamina, torpidity, temp, xp leveling, ect. Lots of other status related things though. Checked 4 different ones to make sure 😕 But yeah I understand boolean operations, I understand most of what I’m browsing here. Just unable to find which files they buried weighted aggro and whatnot inside of or if they renamed it something insanely vague. Found many other similar things like how aggro ramps up, the calls for help, attack ranges, ect. However most of the numbers are the same for both neutral creatures and aggressive ones, meaning that somewhere something else is controlling that and these values are used for after they are aggro’d. Basically for after you run up to a dodo and poke it with a stick.

Thanks for trying to help though both of you. I’m still poking around.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_88e6c92f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_88e6c92f](https://forums.unrealengine.com/u/anonymous_user_88e6c92f)\
**Post date:** [August 19, 2015, 11:55pm UTC](https://forums.unrealengine.com/t/quick-question-about-ai-and-if-creature-is-peaceful-or-violent/38949/7 "2015-08-19T23:55:10Z")

</div>

Think I found it for anyone else interested. Not exactly what I was hoping for but I see what they did and how to fix it. For anyone else interested:

PrimalEarth\Coreblueprints\PrimalGameData\_BP

[Named Team Definitions]  
Each of these are the different setups for what they want to attack, the “teams”. So the main herbivore team doesn’t have any teams listed to target since they attack nothing (unless provoked).  
Carnivores have several teams listed to target. There’s several subdivisions between size groups as well as a tick box where they will only attack players (freaking ants have this checked).

Than to build off this (using ants as an example):  
PrimalEarth\Dinos\Ant\FlyingAnt\_Character\_BP  
[Targeting Team Name Override: Carnivores\_Medium\_TargetPlayerOrTamed]  
This is where it sets which team the targeting is based off of.

Need to read the sticky on actually making a mod now that I have a plan and than will test it. Will be switching all the bugs teams to regular herbivore and seeing what happens. Like the idea of bugs, but targeting the stupid flyers just irritates me, not even taking into account server lag 😕

---

<div class="post-metadata">

**Author:** ![JasonFJ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JasonFJ](https://forums.unrealengine.com/u/JasonFJ)\
**Post date:** [September 7, 2015, 2:46pm UTC](https://forums.unrealengine.com/t/quick-question-about-ai-and-if-creature-is-peaceful-or-violent/38949/8 "2015-09-07T14:46:22Z")

</div>

I was recently trying to figure out how to make a herbivore… say a Trike… aggressive.

I’m quite certain there is a non-exposed boolean… that causes CoreAI/Dino\_BT to fire off CoreAI/ForceAggro\_BT and make certain dinos automatically try to attack anything that matches PrimalGameData\_BP-\>Named Team Definition criteria.

---

<div class="post-metadata">

**Author:** ![JasonFJ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JasonFJ](https://forums.unrealengine.com/u/JasonFJ)\
**Post date:** [September 8, 2015, 5:14am UTC](https://forums.unrealengine.com/t/quick-question-about-ai-and-if-creature-is-peaceful-or-violent/38949/9 "2015-09-08T05:14:07Z")

</div>

That value is almost certainly inside (dino)\_AIController\_BP.

I just changed the controller in the Trike\_Character\_BP to use Carno\_AIController\_BP instead… and instant aggro 🙂

---

<div class="post-metadata">

**Author:** ![katux](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@katux](https://forums.unrealengine.com/u/katux)\
**Post date:** [September 15, 2015, 8:24pm UTC](https://forums.unrealengine.com/t/quick-question-about-ai-and-if-creature-is-peaceful-or-violent/38949/10 "2015-09-15T20:24:31Z")

</div>

im trying my dodos to behave like raptors, im using testmap and directly dragging dodo\_character\_BP\_mod to the test map, i guess you are talking about AIController Class if you leave dodo\_AIcontroller\_BP when you hit dodos they flee, and if you use Raptor\_AIcontroller\_BP when you hit them they fight, but you have to hit them no instant aggro ☹

maybe i need to copy more files to the mod directory? i only have PrimalGameData\_BP\_mod , TestGameMode\_mod, TestMap\_mod and Dodo\_Character\_BP\_mod

---

<div class="post-metadata">

**Author:** ![JasonFJ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JasonFJ](https://forums.unrealengine.com/u/JasonFJ)\
**Post date:** [September 16, 2015, 2:01am UTC](https://forums.unrealengine.com/t/quick-question-about-ai-and-if-creature-is-peaceful-or-violent/38949/11 "2015-09-16T02:01:41Z")

</div>

Change the percent to flee value. It’s in character BP I believe.

---

<div class="post-metadata">

**Author:** ![ENRELL](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ENRELL](https://forums.unrealengine.com/u/ENRELL)\
**Post date:** [September 16, 2015, 3:46am UTC](https://forums.unrealengine.com/t/quick-question-about-ai-and-if-creature-is-peaceful-or-violent/38949/12 "2015-09-16T03:46:15Z")

</div>

> [@katux;379724](#):
>
> im trying my dodos to behave like raptors, im using testmap and directly dragging dodo\_character\_BP\_mod to the test map, i guess you are talking about AIController Class if you leave dodo\_AIcontroller\_BP when you hit dodos they flee, and if you use Raptor\_AIcontroller\_BP when you hit them they fight, but you have to hit them no instant aggro ☹
> 
> maybe i need to copy more files to the mod directory? i only have PrimalGameData\_BP\_mod , TestGameMode\_mod, TestMap\_mod and Dodo\_Character\_BP\_mod

Did not Dodos attack you if you attack their kind ?

---

<div class="post-metadata">

**Author:** ![katux](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@katux](https://forums.unrealengine.com/u/katux)\
**Post date:** [September 16, 2015, 9:32am UTC](https://forums.unrealengine.com/t/quick-question-about-ai-and-if-creature-is-peaceful-or-violent/38949/13 "2015-09-16T09:32:25Z")

</div>

> [@JasonFJ;379928](#):
>
> Change the percent to flee value. It’s in character BP I believe.

ok later on when i arrive at home will try with the flee value, but i dont think it will make them attack me at sight.

> [@ENRELL;379970](#):
>
> Did not Dodos attack you if you attack their kind ?

well … short of , they behaved peacefully untill i hit them, but thats not the behaviour i was looking for, i want them to attack at sight like any other carnivore, but there were weird things going around, i used different settings for 4 dodos i had spawned, the weird thing was that if i used Flying\_AIcontrollers dodos flew around me, and if using carnoAIcontroller they step like a meter from me and didnt attack cause their aggro stops(i think they step where carno feet would be, but their neck is shorter and cant attack), the most vicious AI was Dilo\_AIcontroller may be cause they are simillar in shape or something.

ah… and i also tried copying Carno\_AIcontroller\_BP to the mod folder and renamed it Dodo\_AIcontroller\_bp\_mod and the same result…oh i forgot to mention and maybe its important alll files are correctly parented

right now im thinking about making a full new variant of a dino and create a a NPCspawnvolume in the testmap to check if they spawn correctly…

> **[HOWTO: Add new dinosaur variants](https://forums.unrealengine.com/showthread.php?76709-HOWTO-Add-new-dinosaur-variants)**
>
> Here’s a step-by-step breakdown of how to add your own dino variants in the game. This is a no-frills approach using the GenericMod as a starting point… but it will get you up and running on both solo and dedicated server hosted games and allow...

---

<div class="post-metadata">

**Author:** ![ENRELL](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ENRELL](https://forums.unrealengine.com/u/ENRELL)\
**Post date:** [September 17, 2015, 12:03am UTC](https://forums.unrealengine.com/t/quick-question-about-ai-and-if-creature-is-peaceful-or-violent/38949/14 "2015-09-17T00:03:44Z")

</div>

> [@katux;380103](#):
>
> ok later on when i arrive at home will try with the flee value, but i dont think it will make them attack me at sight.
> 
> well … short of , they behaved peacefully untill i hit them, but thats not the behaviour i was looking for, i want them to attack at sight like any other carnivore, but there were weird things going around, i used different settings for 4 dodos i had spawned, the weird thing was that if i used Flying\_AIcontrollers dodos flew around me, and if using carnoAIcontroller they step like a meter from me and didnt attack cause their aggro stops(i think they step where carno feet would be, but their neck is shorter and cant attack), the most vicious AI was Dilo\_AIcontroller may be cause they are simillar in shape or something.
> 
> ah… and i also tried copying Carno\_AIcontroller\_BP to the mod folder and renamed it Dodo\_AIcontroller\_bp\_mod and the same result…oh i forgot to mention and maybe its important alll files are correctly parented
> 
> right now im thinking about making a full new variant of a dino and create a a NPCspawnvolume in the testmap to check if they spawn correctly…
> 
> [HOWTO: Add new dinosaur variants - ARK: Survival Evolved - Epic Developer Community Forums](https://forums.unrealengine.com/showthread.php?76709-HOWTO-Add-new-dinosaur-variants)

which new variant?

---

<div class="post-metadata">

**Author:** ![katux](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@katux](https://forums.unrealengine.com/u/katux)\
**Post date:** [September 17, 2015, 11:14am UTC](https://forums.unrealengine.com/t/quick-question-about-ai-and-if-creature-is-peaceful-or-violent/38949/15 "2015-09-17T11:14:46Z")

</div>

lol XDDD right now i have 2 options,

1. variant: a dodo that behaves like a raptor —\>yesterday night i was trying to repeat everything i had made till now following the new variant howto and the same results, i have re-read this post and have found this

> [@](#):
>
> PrimalEarth\Coreblueprints\PrimalGameData\_BP
> 
> [Named Team Definitions]  
> Each of these are the different setups for what they want to attack, the “teams”. So the main herbivore team doesn’t have any teams listed to target since they attack nothing (unless provoked).  
> Carnivores have several teams listed to target. There’s several subdivisions between size groups as well as a tick box where they will only attack players (freaking ants have this checked).
> 
> Than to build off this (using ants as an example):  
> PrimalEarth\Dinos\Ant\FlyingAnt\_Character\_BP  
> [Targeting Team Name Override: Carnivores\_Medium\_TargetPlayerOrTamed]
> 
> This is where it sets which team the targeting is based off of.

when i arrive home ill try this changes to see if it works now

1. variant: a raptor that looks like a dodo, i have not looked into this option but if i cant make a dodo behave like a raptor maybe its easier to make a raptor look like one
