Jump to content

Auto Turrets Not Killing NPCs

Pending 1.0.3

TeamDolny
TeamDolny

Posted

Hello,

We are using TruePVE and have been trying to make it so that the RoamingNPCs can be killed by player autoturrets.  We have configured TruePVE to harm them using CustomNPCs, CustomPets, but they only get shot at and not killed.

Is there another entity name we can add to the TruePVE config for the RoamingNPCs so that the autoturrets won't just empty bullets on them without killing them?

walkinrey

Posted

RoamingNpc, BaseCustomNpc are our classes

TeamDolny

Posted

Thank you for your reply.  I added those classes to be hurt by anything and by turrets and traps, but they still are only shot at, but not killed.  It's almost like TruePVE is seeing them as actual players.  Is there any other thing that you know of that can make the turrets kill them instead of just emptying out the bullets?  Thanks!

 

walkinrey

Posted

Try to unload TruePVE and check again to see if it’s caused by another plugin, just in case

TeamDolny

Posted

I unloaded TruePVE and the guns do kill the bots.  I have tried every npc name I can think of and it still does not kill them..  Is there something I may be missing?

 

walkinrey

Posted

can i see your truepve config

TeamDolny

Posted

Attached is the TruePVE config.  Thank you so much for looking at this.

TruePVE.json

walkinrey

Posted

i think the problem is in rules order? try to add "anything can hurt BaseCustomNpc" at top and at bottom of the rules list

TeamDolny

Posted

I added that to the top and bottom of the rules but unfortunately it did not work.  It's odd that we can kill them with our held guns, but the turret will not.  When friending the turret, we see the bots in the list of players, but we do not friend them, of course.  They are definitely targeted and get shot at but are never hurt as though they were in God mode.

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
3.3m
Total downloads
Customers
12.4k
Customers served
Files Sold
175.7k
Total sales
Payments
3.8m
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.