Report reply RyanFromRust Posted June 23, 2020 Basically the title: Does BotSpawn Obey ZoneManager's NoNPC Flag? RE: https://umod.org/community/zone-manager/21838-block-bots-from-spawning-within-a-zone (Version unknown) Quote Share this comment Link to comment
Report reply Steenamaroo Posted June 23, 2020 (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 June 23, 2020 by Steenamaroo Quote Share this comment Link to comment
Report reply RyanFromRust Posted June 25, 2020 Super awesome. Thank you very much! Quote Share this comment Link to comment
Report reply Steenamaroo Posted July 22, 2020 Changed Status from Pending to Closed Quote Share this comment Link to comment