🚀 春季促销开始! 🚀 不要错过以7折优惠购买我所有系统的机会! 

点击购买
logo unreal

虚幻引擎 - 通用AI系统

avatar`
Yuewu(罗传月武)
Updated: Apr 16, 2025

注意

开发计划往后推迟,UE5.5的状态树有我需要的不错的功能,因此我会在5.5进行一次重构后再考虑发布。

通用AI系统概述

通用AI系统(GAIS)。

该系统由三部分构成,它们可以独立使用,也可以配合使用。

命令系统:此系统允许你以高度灵活的方式为AI下达各种各样的命令以执行不同的AI行为,可以通过命令队列实现连续性AI行为,亦可以随时打断AI命令队列,或者插入优先级更高的命令。任何类似“给某人下达命令去执行”的机制都可以使用此系统实现,适合任何类型的游戏,不仅仅是RTS。

小队系统:此系统抽象出现实世界中的团队、成员概念,任意Pawn可以组成一个小队,小队中的每一个单位可以被分配不同的角色以执行不同的AI行为,也可以配合命令系统,实现小队中各个单位之间的AI协调。任何与“队伍/成员”相关的游戏机制都可以用该系统实现,比如同伴系统,群体战斗AI等。

阵型系统:此系统提供一个编辑器用于自定义各种形状的阵型,它主要控制一组Actor在世界中的相对位置编排,但结合小队系统,你可以控制整个队伍以什么样的形状去移动或者战斗。并可以在游戏中实时切换不同的阵型。

通用AI系统的强大之处在于,结合如上几个系统,你可以轻松地实现诸多有趣的游戏机制,唯一的限制就是你的想象力。

如果你的游戏有如下使用情景,请考虑购买此系统以加速你的开发过程。

  • 你需要管理玩家与多个AI之间的交互,或者多个AI与多个AI之间的交互。
  • 你需要实现同伴系统,你可以给你的同伴下达不同的命令以执行不同的行为。
  • 你需要在游戏中针对AI建立队伍/成员的关系,并让他们相互协调配合,或者你希望玩家能够自己带领一个队伍进行战斗。
  • 你需要根据游戏的情况。
  • 在游戏世界中,模拟一群对象按照既定的形状移动。

请查阅文档和演示视频以更多的了解这个系统能帮助你干什么。

技术细节

蓝图数量: 50+ (核心资产,以及案例内容)

C++文件数量: 20+()

网络同步: 支持

支持的开发平台: Win64

支持的目标构建平台: Win64,Android,Linux

This is part of a Generic AI system I'm developing, my AI system consists of three main parts, the command system, the squad system, and the formation system. It is used to abstract the relationship between a squad(team)/member(unit)/seat in the real world. Any unit of actors can form a squad, the squad can dynamically add and remove units, the units in the squad can have roles (e.g. the leader or sidekick), the units with roles in the squad are driven by the role AI to act on their own in the squad, those without roles (e.g. the big head troopers) can only execute AI commands (the behavior tree) from the squad or from other units with roles. A squad can be unorganised (no formation to place everyone together) or it can be formed so that different units can be assigned to specific positions in the squad.


If anyone interested, plz join my discord channel. I will release as UE plugin.