Version 2.8.0
37,043 downloads
This plugin does not have its own functionality. This plugin is only used as an API for other plugins.
Supported Plugins
AirEvent
HarborEvent
WaterEvent
Satellite Dish Event
Power Plant Event
Junkyard Event
BossMonster
BetterNpc
Defendable Bases
Defendable Homes
Water Patrol
Convoy
Armored Train
Sputnik
Space
Cobalt Laboratory
XDChinookEvent
IQSphereEvent
IQBoss
Christmas
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