Load Unit after Unit Killed FE7 Event Assembler

Hello guys, I want to load some units in replacement for when a Unit dies, but It only works on Enemy Units

Here are the relevant events

Nergal2:
WarpIn(Nergal1,27,17)
ENUN
ENDA

Murdock2:
WarpIn(Murdock,11,6)
ENUN
ENDA

Knoll2:
WarpIn(Knoll,16,26)
ENUN
ENDA

Nergal1:
UNIT 0x44 0x45 0x1 0xA2 [27,17] [27,17] [0x8E,0x0,0x0,0x0] [0x0,0x0,0x0,0x0]//Nergal
UNIT

Murdock:
UNIT 0x4D 0x16 0x0 0xA0 [11,6] [11,6] [0x29,0x0,0x0,0x0] [0x0,0x0,0x0,0x0] // Murdock
UNIT

Knoll:
UNIT 0xA6 0x26 0x0 0xA4 [16,26] [16,26] [0x49,0x38,0x5C,0xA9] [0x0,0x0,0x0,0x0]//Knoll
UNIT

MiscBasedEvents:
DefeatBoss(EndingScene)
AFEV 0x08 EndingScene1 0x28
AFEV 0x09 EndingScene2 0x27
AFEV 0x0A Nergal2 0x06
AFEV 0x0B Murdock2 0x07
AFEV 0x0C Knoll2 0x08
AFEV

Is there a way for this to work out on player and npc phase?

You don’t end Misc events with “AFEV”, you end it with END_MAIN, the only ones that don’t end with that are UNITs and TRAPs, which end with UNIT and ENDTRAP

As for your question, you didn’t really tell us how this is working, I see there are AFEVs but what is setting those flags?

You also said it only works on enemies, then said it only works on enemy phase, which one is it?

Sorry, it only works on Enemies, It does not work either on npc or player units, it only works on enemy units