Jump to content

Prevent Other NPCs from Attacking?

Pending 1.4.9

dustyhansen
dustyhansen

Posted

Is there any way to add an option that will make it so other NPCs don't attack these NPCs? I am using an event plugin that attacks the BotRespawn NPCs when it starts and since it can't kill them it just is constant gunfire for like an hour. The dev for the event plugin said it needs to be corrected on your end.

Screenshot 2026-01-24 102054.png

  • Administrator
Steenamaroo

Posted

I can't control whether some other plugin's NPCs attack BotReSpawn npcs or not,
but I can control whether the BotReSpawn npcs should return fire and/or take damage.

Most likely the Global PVE_Safe setting is set to true and preventing damage.
Would you be willing to test and confirm?

If this is the case I could take a loot at that, because the code there is really meant for autoturret attack and that kind of thing.

dustyhansen

Posted

23 hours ago, Steenamaroo said:

I can't control whether some other plugin's NPCs attack BotReSpawn npcs or not,
but I can control whether the BotReSpawn npcs should return fire and/or take damage.

Most likely the Global PVE_Safe setting is set to true and preventing damage.
Would you be willing to test and confirm?

If this is the case I could take a loot at that, because the code there is really meant for autoturret attack and that kind of thing.

PVE Safe is set to false.

  • Administrator
Steenamaroo

Posted

There are a few other reasons that a BotReSpawn npc wouldn't take damage,
but those should apply to attacks from regular players too,
like if the attacker-npc distance exceeds Immune_From_Damage_Beyond, or if Respect_Safe_Zones is true and the npc is in a safe zone.

 

I can't think of anything else that should prevent some npc from being able to hurt BotReSpawn npcs,
unless it's coming from a PVE plugin, or Zone settings, or similar.

2.2m

Downloads

Total number of downloads.

10.2k

Customers

Total customers served.

147.3k

Files Sold

Total number of files sold.

3.1m

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.