Jump to content

Animal vs. NPC

Closed 2.5.5

Kimbo
Kimbo

Posted

 

Hello, is there a way to set that, for example, wolves can attack NPCs?

Jbird

Posted

If you were to see any plugins that allow it absolutely. It's not a function of this plugin though no @Kimbo.

KpucTaJl

Posted

help was accepted in Discord

KpucTaJl

Posted

Changed Status from Pending to Closed

boofhead187

Posted

Hi, what was the solution for this ? I'm looking for the same thing.

Thank you

Jbird

Posted

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

 

boofhead187

Posted

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?) 

   

Jbird

Posted

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.

1.7m

Downloads

Total number of downloads.

7.2k

Customers

Total customers served.

108.2k

Files Sold

Total number of files sold.

2.2m

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.