How do I make a boss spawn after enemy death?

Darlak🪓

Terrarian
I mean like how empress of light spawns after a prismatic lacewing is killed or hive mind spawns after hive cyst is killed i have no idea how to any help is appreciated.
 
In the OnKill method of the NPC, call NPC.NewNPC() and spawn whatever boss NPC you'd like.
 
Back
Top Bottom