Jump to content

How do I get BotReSpan to spawn for BradleyDrops

Pending 1.2.6

I'm trying to get BotReSpawn to spawn NPCs when the plugin BradleyDrops drops a Bradley and it gets destroyed. I'm seeing normal scientists get spaned as per the default game, but none of my ones in the config under APC_Kill (which is all thats enabled).

It seems to work on bradleys spawned from F1 with spawn bradleyapc

Im suspecting theres a different named nedded.

Share this comment


Link to comment

Hi,
There's a few possibilities, although BotReSpawn just checks if (entity is BradleyAPC) so I doubt it's a prefab name issue.

Is it possible the area where you were testing doesn't have open terrain with navmesh?
If there's no navmesh or its in shallow water, for example, BotReSpawn wont spawn the npcs.

I do provide an object return hook so other plugins can choose to cancel BotReSpawn's action - OnBotReSpawnAPCKill.
It's also possible BradleyDrops author is making use of that. Might be worth asking them.

Share this comment


Link to comment

Thanks for the reply. I found the mentioned callback in BradleyDrops as below (with my debugging)

        object OnBotReSpawnAPCKill(BradleyAPC bradley)
        {
            if (BradleyDropData.ContainsKey(bradley.net.ID.Value))
            {
                Puts("BANG 1");
                return true;
            }
            Puts("BANG 2");

            return null;
        }

 

I got the message "BANG 1" so I commented out those lines so it would just return null (which Im assuming lets BotReSpawn spawn the NPCs) and that seemed to do the trick. I guess my next support call will be to that dev to see if they can add a config option for that.

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.7k

Customers

Total customers served.

82.3k

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.