Hi
I’m currently working on NPC. In my current case, I need to get the instigator of damage arg on my character. When I apply damage from my NPC Behavior, depending if the instigator are set, I have different behavior :
First case, I set damage arg without instigator. On my character, if I use DamageResult.Instigator? It not false, but It return myself, not the npc who send the damage
CharacterToAttack.Damage(damage_args{ Amount := ValueOfDamage})
The second case is when I try to set instigator with, nothing happen when trying to apply damage
NpcAgent := GetAgent[]
MaybeInstigator := NpcAgent.GetInstigator()
and this, return myself to, not the npc :
CharacterToAttack.Damage(damage_args{ Amount := ValueOfDamage, Instigator := option { game_action_instigator[NpcAgent] }})
Am I missing something ?
Thank, have a nice day !