Jump to content

Animal vs. NPC

Closed 2.5.5

Kimbo

It's in the description at the end @boofhead187 here it is though.

If you need Npcs to be able to fight with other Npcs, then set the value of CanTargetOtherNpc inside the plugin to true

If you need Npcs to be able to fight with other Npcs, then set the value of CanTargetOtherNpc inside the plugin to true

 

Share this comment


Link to comment

Its not that.   Kimbo shared solution with me to modify plugin but does not work.

By modifying CanEntityTakeDamage method.

if (attacker is BaseAnimalNpc) return null;

but I get following error on compile

Error while compiling NpcSpawn: The type or namespace name 'BaseAnimalNpc' could not be found (are you missing a using directive or an assembly reference?) 

   

Share this comment


Link to comment

The developer had responded that the help was accepted in Discord @boofhead187 perhaps you can jump in the Mad Mapper Discord and ask about it, KpucTaJl might still have record of what he referenced or otherwise is the greatest resource you can have to attempt custom changes to his plugins.

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.7k

Customers

Total customers served.

82.4k

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.