Jump to content

How to add a custom NPC?

Pending 1.6.7

Ranchdressing
Ranchdressing

Posted (edited)

Hello, 

I'm trying to add CustomScientistNPC from chaoscode.io's Plane Crash event but for the life of me I can't get Skill Tree to award xp for it. I added it in like this to the config

"ScientistHeavy": 300.0,
 "CustomScientistNPC": 300.0,

and I tried to add it to the .cs like this 
AwardXP(attacker, config.xp_settings.xp_sources.CustomScientistNPC, npc, false, false, npc.name ?? npc.ShortPrefabName);

But no luck. Would you be able to tell me how to add a custom NPC in?

Side note. When the scientist is killed, in the console it is called HeavyScientist. I did try to add that in just the same way and that also did not work.

Edited by Ranchdressing
Note
imthenewguy

Posted

Plugin doesnt support custom NPCs from chaos code at this point. It would need to be coded in.

 

1.8m

Downloads

Total number of downloads.

8.4k

Customers

Total customers served.

127.2k

Files Sold

Total number of files sold.

2.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.