I want to use Damage() to eliminate an NPC and make an elimination decision, but I can’t do this.
If you know anything, please let me know.
if(InstigatorFC := Agent.GetFortCharacter[]):
if (GameInstigator := game_action_instigator[InstigatorFC]):
if (GameCauser := game_action_causer[InstigatorFC]):
for (NPC : NPCList):
if (damagedNPC := NPC.GetFortCharacter[]):
Args := damage_args {
Instigator := option{GameInstigator},
Source := option{GameCauser},
Amount := DamageAmount
}
damagedNPC.Damage(Args)