Skip to content

Failed to call hook 'OnEntityTakeDamage' on plugin 'HumanNPC v0.3.47' #3

Description

@thewhiterabbit

Hello, and thank you for this very useful plugin.

I'm getting this error using Oxide.Rust Version: 2.0.4867 with HumanNPC installed...

Failed to call hook 'OnEntityTakeDamage' on plugin 'HumanNPC v0.3.47' (InvalidCastException: Specified cast is not valid.)
  at Oxide.Plugins.HumanNPC.OnEntityTakeDamage (BaseCombatEntity entity, HitInfo hitinfo) [0x0005e] in <915dcfdfbe9d48239cc0e85bbfd8adee>:0
  at Oxide.Plugins.HumanNPC.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00bbf] in <915dcfdfbe9d48239cc0e85bbfd8adee>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <80b90e8213db44b29ec2d4111764172c>:0                                  0b/s in, 0b/s out
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <ec05e0208c9149bba43236ca58fea105>:0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <ec05e0208c9149bba43236ca58fea105>:0

If I get time after setting up my new production server I can look into the code to see if I can debug and send a pull request.

Just wanted to bring this to your attention in case you haven't known about this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions