Failed to call hook 'OnPlayerDeath' on plugin 'NightZombies v3.3.15' (ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index)
at System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) [0x00029] in :0
at System.ThrowHelper.ThrowArgumentOutOfRangeException () [0x00000] in :0
at Oxide.Plugins.NightZombies+SpawnController.GetPlayer (BasePlayer& player) [0x000c5] in :0
at Oxide.Plugins.NightZombies+NightZombie.Respawn () [0x00049] in :0
at Oxide.Plugins.NightZombies+NightZombie.OnDeath () [0x0005a] in :0
at Oxide.Plugins.NightZombies+SpawnController.Respawn (BaseCombatEntity entity) [0x00013] in :0
at Oxide.Plugins.NightZombies.OnPlayerDeath (ScarecrowNPC entity, HitInfo info) [0x00021] in :0
at Oxide.Plugins.NightZombies.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0013d] in :0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in :0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in :0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in :0
Scarecrow was killed by 1212451[1212451] at (-1033.1, 23.5, 751.9)Failed to call hook 'OnPlayerDeath' on plugin 'NightZombies v3.3.15' (ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index)
at System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) [0x00029] in :0
at System.ThrowHelper.ThrowArgumentOutOfRangeException () [0x00000] in :0
at Oxide.Plugins.NightZombies+SpawnController.GetPlayer (BasePlayer& player) [0x000c5] in :0
at Oxide.Plugins.NightZombies+NightZombie.Respawn () [0x00049] in :0
at Oxide.Plugins.NightZombies+NightZombie.OnDeath () [0x0005a] in :0
at Oxide.Plugins.NightZombies+SpawnController.Respawn (BaseCombatEntity entity) [0x00013] in :0
at Oxide.Plugins.NightZombies.OnPlayerDeath (ScarecrowNPC entity, HitInfo info) [0x00021] in :0
at Oxide.Plugins.NightZombies.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0013d] in :0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in :0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in :0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in :0
Scarecrow was killed by sentry.scientist.static (entity) at (-12.7, 34.4, 687.7)
Getting these errors when the zombie dies / killed by some npc or pve entity.
My config:
{
"Spawn Settings": {
"Spawn near players": true,
"Min pop for near player spawn": 5,
"Min distance from player": 25.0,
"Max distance from player": 55.0,
"Spawn Time": 19.8,
"Destroy Time": 7.3,
"Zombie Settings": {
"Display Name": "Scarecrow",
"Scarecrow Population (total amount)": 30,
"Scarecrow Health": 200.0,
"Make Breathing Sound": true,
"Scarecrow Kits": []
},
"Chance Settings": {
"Chance per cycle": 100.0,
"Days betewen spawn": 0
}
},
"Destroy Settings": {
"Leave Corpse, when destroyed": false,
"Leave Corpse, when killed by player": true,
"Spawn Loot": true,
"Half bodybag despawn time": true,
"Quick destroy corpses": true
},
"Behaviour Settings": {
"Attack sleeping players": false,
"Zombies attacked by outpost sentries": false,
"Throw Grenades": true,
"Ignore Human NPCs": true,
"Ignored entities (full entity shortname)": [
"scientistjunkpile.prefab",
"scarecrow.prefab"
]
},
"Broadcast Settings": {
"Broadcast spawn amount": true
}
}