Jump to content

Caling hook conflict

Pending 1.0.7

SlayersRust
SlayersRust

Posted

Hello any idea how I can fix this console spam?

Calling hook CanEntityTakeDamage resulted in a conflict between the following plugins: NpcSpawn - False (Boolean), RoadBunkers (True (Boolean))

Fruster

Posted (edited)

Hey! Try changing CanEntityTakeDamage to this:

private object CanEntityTakeDamage(BuildingBlock block, HitInfo hitInfo)
{
    if (block.buildingID == mainID)
    {
        if (hitInfo.Initiator && hitInfo.Initiator is NPCPlayer) return null;
        return true;
    }
    return null;
}

 

then let me know the results, please

Edited by Fruster

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.6m
Total downloads
Customers
11.4k
Customers served
Files Sold
163.1k
Total sales
Payments
3.5m
Processed total
×
×
  • 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.