Hi Lovatto,
Bots not attack player, you need attack first and after bot work and attack, can you help me please,
Its strange this bug and no error ;(
Bot ignored player
- Lovatto
- Admin
- Posts: 1834
- Joined: Sun Dec 07, 2014 3:18 pm
- Contact:
- Lovatto
- Admin
- Posts: 1834
- Joined: Sun Dec 07, 2014 3:18 pm
- Contact:
I check this and I find an easy solution for this:
in bl_AIShooterAgent.cs -> RandomPatrol(bool precision) ->
Add these lines:
after these lines:
So it should look like this:
Let me know if this works for you.
in bl_AIShooterAgent.cs -> RandomPatrol(bool precision) ->
Add these lines:
Code: Select all
if (agentBehave == AIAgentBehave.Agressive && Target == null)
{
Target = GetNearestPlayer;
}
Code: Select all
else
{
SetDebugState(25);
AgentState = agentBehave == AIAgentBehave.Agressive ? AIAgentState.Following : AIAgentState.Searching;
precisionArea = 8;
}
}
else
{
SetDebugState(26);
AgentState = AIAgentState.Patroling;
Let me know if this works for you.