NullReferenceException in Tactical Tasks - Flank

plantdaddy

New member
Hello,
maybe someone can help me - I get all the time this null reference exception here for the flank.

1660756278323.png
1660756339946.png
And maybe a side question how could I do for the flank a melee attack animation and attack?
 
What is line 35 for you?

And maybe a side question how could I do for the flank a melee attack animation and attack?
When you implement the IAttackAgent interface you define what it means to attack. Within the Attack method you could define your attack as being a melee attack.

 
What is line 35 for you?


When you implement the IAttackAgent interface you define what it means to attack. Within the Attack method you could define your attack as being a melee attack.

line 35 is this here in Flank.cs:

1660816984031.png
 
Thanks!

Is the TacticalAgent or the AttackAgent null? Do you get any errors before that? Does your agent have a component that implements IAttackAgent?
 
Top