@xyth
I noticed that if i'm driving and passing by zombies, the hired npc ai will attack them.
And for some reason, the "Auto-teleporting to me if im far away for them" stop working.
They will only teleport to me if their intended target is dead.
Sometimes they would target zombies in buildings im passing by and most buildings are bloackaded so they will be hitting walls. And if i dont stop and kill the zombies, the ai will never teleport back to me and its difficult to find where they are at after.
Somehow is it possible to teleport hired ai to me that are following me no matter what?
Because of this, if i hire like 10 ai, all 10 of them will "Disappear" When im driving. AND WILL NEVER COME BACK. They can still be found at well...wherever the hell their "target" zombies are. Even after the zombies are dead, they will wander around the area until i talk to them and ask them to follow me again.
I Changed:
Blocks.xml
<!-- Buff to keep the NPCs close by. thenumber in the ( ) is the range -->
<property name="ActiveRadiusEffects" value="buffHomePoint(3)"/>
entityclasses.xml
<property name="SightRange" value="3"/>
<property name="AttackIndexes" value="3" />
<property name="AIPathCostScale" value=".9, 1"/>
<property name="AITask-1" value="BreakBlock"/>
<property name="AITask-2" value="Territorial"/>
<property name="AITask-3" value="ApproachAndAttackSDX, Mods" data="class=Entity,0" />
<property name="AITask-4" value="ApproachAndFollowTargetSDX, Mods" data="incentives=Leader"/>
<property name="AITask-5" value="PatrolSDX, Mods"/>
<property name="AITask-6" value="MaslowLevel1SDX, Mods"/>
<property name="AITask-7" value="Look"/>
<property name="AITask-8" value="WanderSDX, Mods"/>
<property name="AITask-9" value="" />
<property name="AITarget-1" value="SetAsTargetIfHurtSDX, Mods" data="class=Entity"/>
<property name="AITarget-2" value="SetAsTargetIfLeaderAttackedSDX, Mods" data="class=Entity"/>
<property name="AITarget-3" value="SetAsTargetNearestEnemySDX, Mods" data="class=Entity,3"/>
I don't know what im doing though