Jump to content

BotReSpawn support (how to get botrespawn npcs to stop attacking the hostages?

Pending 1.0.7

Covfefe
Covfefe

Posted

i found a whole ton of my botrespawn bots trying to attack those hostages. i checked my botrespawn settings and i can't find anything to fix this

252490_20250918205907_1.png.ed5ab6454cc9f8c10d09655fb16cb145.png

aimacak

Posted

On 9/19/2025 at 5:21 AM, Covfefe said:

i found a whole ton of my botrespawn bots trying to attack those hostages. i checked my botrespawn settings and i can't find anything to fix this

Hello, try to make some changes to the FerryTerminalEvent.cs plugin itself (oxide/plugins), and tell me if this helped solve the problem?

add this code between '#endregion NTeleportation' and '#region Economy'
 

        #region BotReSpawn
        private object OnBotReSpawnNPCTarget(ScientistNPC npc, BasePlayer player)
        {
            if (Controller == null) return null;
            if (Controller.BrainAnimations.Any(x => x.Entity == player)) return true;
            if (Controller.Hostages.Contains(player)) return true;
            if (Controller.HostagesEvacuations.Any(x => x.Hostage == player)) return true;
            return null;
        }
        #endregion BotReSpawn

 

image.png

image.png

2.1m

Downloads

Total number of downloads.

9.8k

Customers

Total customers served.

142.6k

Files Sold

Total number of files sold.

3m

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.