Please select what you are reporting on:
Unreal Editor for Fortnite
What Type of Bug are you experiencing?
Devices
Summary
A Custom NPC’s agent spawned from the npc spawner device does not work as a instigator for damage function
Steps to Reproduce
Custom npc
get the spawned npcs’agent
pass it into the damage args instigator property for Damage
no damage will be done
var args : damage_args = damage_args{
Instigator := option{SourceAgent.GetInstigator()}
Amount := AppliedDamage
}
if:
args.Instigator?
then:
Print("Instigator is valid")
TargetCharacter.Damage(args)
Expected Result
Damage would be applied from the instigator
Observed Result
No damage is done, no error, nothing happens
Platform(s)
pc