Where to tweak Agent spread/damage?

evade123

New member
Have a normal AI Agent. Made a previous post pertaining to deathmatch AI kit, but was wondering
1. Where I can tweak the Agent's bullet spread and damage they cause?
2. How the enemy detects the player? Do they always attack at any range? Or can this be adjusted?
 
Last edited:

Justin

Administrator
Staff member
1. Where I can tweak the Agent's bullet spread and damage they cause?
This is on the ShootableWeapon ItemAction. The property name is Spread.

2. How the enemy detects the player? Do they always attack at any range? Or can this be adjusted?
Take a look at DeathmatchAgent.TargetInSight. They will always attack the target that is most in range.
 

evade123

New member
Thanks for that! Is there a way to change the detection? For example shoot/detect at the player even if they are behind a wall? Currently the AI will walk through the waypoints, but what if im trying to have them run towards the player at all times?
 

Justin

Administrator
Staff member
You could play with the layers so the agent raycasts go through the wall colliders, but beyond that it'll take script modification within the TargetInSight method.
 

Justin

Administrator
Staff member
That is set on the agent. The Character Layer Manager is responsible for determining the layers.
 
Top