Jump to content

Does BotSpawn Obey ZoneManager's NoNPC Flag?

Closed 2.0.8

  • Administrator
Steenamaroo

Posted (edited)

Hi Ryan,
Welcome to Codefling!

 

At a quick glance it looks like ZoneManager's NpNPCSpawns flag should kill any NpcPlayer type, which would include BotSpawn.

I'm looking at CanSpawn method around line 360...

 

else if (baseEntity is BaseNpc || baseEntity is NPCPlayer)
{
    if (HasEntityFlag(baseEntity, ZoneFlags.NoNPCSpawns))
        baseEntity.Kill(BaseNetworkable.DestroyMode.None);
}  

 

 

Just be aware that killing a BotSpawn npc will trigger his respawn timer so it's possible, then, to have an npc trying to respawn over and overm depending on BotSpawn's location/radius settings.

Edited by Steenamaroo
  • Administrator
Steenamaroo

Posted

Changed Status from Pending to Closed

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.3m
Total downloads
Customers
10.7k
Customers served
Files Sold
154.6k
Marketplace sales
Payments
3.3m
Processed total
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.