Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Does BotSpawn Obey ZoneManager's NoNPC Flag?

Closed 2.0.8

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))



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

Share this comment

Link to comment

About Us

Codefling is a forward-thinking platform for developers to share and monetize their work from plugins to game assets and everything in-between.

7,046 files sold to 630 customers and $102,052 of payments processed this year!

  • 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.