NpcSpawn – NPC生成

NpcSpawn – NPC生成

NpcSpawn.zip
文件大小
42.3K
版本号
2.7.1
原网址
https://codefling.com/extensions/npc-spawn?tab=changelog

此插件本身没有功能。此插件仅用作其他插件的 API。

ScientistNPC SpawnNpc(Vector3 position, JObject configJson)

创建一个 NPC

  • 位置 – 地图上的 NPC 位置
  • configJson-NPC参数
void AddTargetRaid ( CustomScientistNpc npc ,HashSet < BuildingBlock > foundations )

设置突袭的 NPC 目标

  • npc – 你需要指定突袭目标的 NPC
  • 基础 – 基础列表,用于 NPC 突袭
void AddTargetGuard(CustomScientistNpc npc, BaseEntity target)

设置要守卫的 NPC 目标

  • npc – 你需要为其设置守卫目标的 NPC
  • 目标 – 需要 NPC 守护的实体
void ChangeHomePosition ( CustomScientistNpc npc ,Vector3 pos )

改变家园的NPC点

  • npc – 需要改变家园点的NPC
  • pos – 家居新点
BasePlayer GetCurrentTarget(CustomScientistNpc npc)

获取 NPC 的当前目标

  • npc – 需要获取当前目标的 NPC

如果需要Npc能够与其他Npc战斗,则将插件内的CanTargetOtherNpc值设置为true

© 版权声明
THE END
喜欢就支持一下吧
点赞10
评论 抢沙发

请登录后发表评论

    暂无评论内容