When destroying bradley on cosmo, an error occurs.
[Oxide] 20:27 [Error] Failed to call hook 'OnEntityDeath' on plugin 'BradleyGuards v1.4.1' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.BradleyGuards.SpawnScientist (Oxide.Plugins.BradleyGuards+GuardSetting settings, UnityEngine.Vector3 position, UnityEngine.Vector3 eventPos) [0x00064] in <dab6570ceec54598aff86cd9f9594b07>:0
at Oxide.Plugins.BradleyGuards.SpawnEvent () [0x00127] in <dab6570ceec54598aff86cd9f9594b07>:0
at Oxide.Plugins.BradleyGuards.OnAPCDeath (BradleyAPC bradley) [0x00038] in <dab6570ceec54598aff86cd9f9594b07>:0
at Oxide.Plugins.BradleyGuards.OnEntityDeath (BradleyAPC bradley, HitInfo info) [0x00000] in <dab6570ceec54598aff86cd9f9594b07>:0
at Oxide.Plugins.BradleyGuards.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x001e4] in <dab6570ceec54598aff86cd9f9594b07>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <60c318df79ed41688ea59335e48d61ad>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <dfcb48ea05694263bbc08e62a39c274c>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <dfcb48ea056942 [Error] Failed to call hook 'OnEntityDeath' on plugin 'BradleyGuards v1.4.1'Solved
Locked automatically