What us the best to handle large group of hostile npc

im making an rpg game and i want to make zombies but the problem is i need to manage a large groups of them and i need them to challenging and smooth

1 Like

Ok if you want to make it i’ll give you 3 tips:

1 Like

Here is a free zombie asset that has features of patroling, following and attacking the player. Its code is also very easy to tweak to even if you re not too deep into lua.

However this can be heavy on performance as it has many “unnecessary” futures. So if you are talking about hordes of zombies (1000s of them), its better that you make a simpler, more optimized code for them yourself, using the tips above