how to make custom invasion

TWillyH

CelebrationMK10
i want to make an invasion event similar to the goblin army (with the requirement being atleast 1 boss killed, similar to dryad spawn condition,) with several of my custom enemies. how do i code the event, and how do i make the enemies spawn in it?
 
I would use the code from another invasion and modify it to suit your needs
 
i dont know, the only tutorial i could find is outdated. (2017)
 
does anyone know. recent tutorial for something like this?
 
There is no real set way, you could adapt the old tutorial from 2017 which uses vanilla UI, but I have done that in the past and it breaks in multiplayer. If you do that or a completely custom system, either way you'd have to set up your own net code for it.
 
ok thanks, but whats net code
 
Netcode Guide

You will need to make custom packets for this. Otherwise the event won't sync between players in multiplayer.
 
Back
Top Bottom