Jump to content

Npc Spawn 2.6.9

   (1 review)
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

  • 193.4k
  • 20.8k
  • 42.29 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 15
  • Love 9

User Feedback

1.1m

Downloads

Total number of downloads.

5.6k

Customers

Total customers served.

81.4k

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.