Jump to content

Failed to call hook OnEntityTakeDamage

Closed 1.2.3 1.2.4

Hi there! 
This plugin seems great, and operational for the most part! 
I haven't received any complaints from players,
But I am getting an error that keeps rolling through my console. 

I figured it had to do with heli sams but Im not 100% sure which direction to take in order to fix it.
Any help with this would be greatly appreciated!

I have Attached 2 Files for reference: Config & Active Plugins


Here is the error from the console: 


Failed to call hook 'OnEntityTakeDamage' on plugin 'HeliSignals v1.2.3' (NullReferenceException: Object reference not set to an instance of an object) 

 at Oxide.Plugins.HeliSignals.OnEntityTakeDamage (PatrolHelicopter heli, HitInfo info) [0x000a4] in <e76a0691dfd84ad9b73705a87cd4be65>:0 

  at Oxide.Plugins.HeliSignals.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0058a] in <e76a0691dfd84ad9b73705a87cd4be65>:0 

  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <87ce9ac9776a48658bc55eae6debe38b>:0 

  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <18d4f19bbc844191b11ed9e69284d09b>:0 

  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <18d4f19bbc844191b11ed9e69284d09b>:0 
 

Plugins List.Txt HeliSignalConfig.json

Share this comment


Link to comment

Hey thanks, glad you like it. There could be various reasons people see this message, but it shouldn’t interfere with other plugins or how this plugin works. In the latest update which I’m working on that error shouldn’t happen, it’s happening due to a part of the code where I didn’t add a null check, so it’s my bad, so don’t stress about it. It’s not harking anything and I’ll release the update when it’s ready after the holiday period as I’m just too busy with family at the moment. 🙂

  • Love 1

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.7k

Customers

Total customers served.

83.6k

Files Sold

Total number of files sold.

1.6m

Payments Processed

Total payments processed.

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