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
  • Curator
imthenewguy

Posted

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

 

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
2.5m
Total downloads
Customers
11k
Customers served
Files Sold
157.7k
Marketplace sales
Payments
3.4m
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.