Jump to content

Npc Spawn 2.4.7

   (0 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

  • 4,981
  • 752
  • 90.25 kB

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 6

KpucTaJl's Collection

User Feedback

487.3k

Downloads

Total number of downloads.

2.7k

Customers

Total customers served.

36.5k

Files Sold

Total number of files sold.

613.1k

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.