Jump to content

Npc Spawn 2.7.9

   (2 reviews)
Message added by KpucTaJl,

This plugin does not have its own functionality. This plugin is only used as an API for other plugins

1 Screenshot

About Npc Spawn

This plugin does not have its own functionality. This plugin is only used as an API for other plugins.

 

Supported Plugins

 

API

ScientistNPC SpawnNpc(Vector3 position, JObject configJson)


Creates an NPC

  • position – NPC position on the map
  • configJson - NPC parameters

 

void AddTargetRaid(CustomScientistNpc npc, HashSet<BuildingBlock> foundations)


Sets NPC targets for a raid

  • npc - NPC for which you need to specify the target for the raid
  • foundations - list of foundations, for the NPC raid

 

void AddTargetGuard(CustomScientistNpc npc, BaseEntity target)


Sets an NPC target to guard

  • npc - NPC for whom you need to set a target that he will guard
  • target - an entity that needs to be guarded by an NPC

 

void ChangeHomePosition(CustomScientistNpc npc, Vector3 pos)


Changes the NPC point of the home

  • npc - NPC who needs to change the point of the home
  • pos - new point of the home

 

BasePlayer GetCurrentTarget(CustomScientistNpc npc)


Gets the current target for the NPC

  • npc - NPC who needs to get his current target

 

If you need Npcs to be able to fight with other Npcs, then set the value of CanTargetOtherNpc inside the plugin to true

  • Like 17
  • Love 10

User Feedback

1.4m

Downloads

Total number of downloads.

6.8k

Customers

Total customers served.

101.5k

Files Sold

Total number of files sold.

2m

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.