<C++> Implementing RAG Controlled Game NPC in Unreal

Monday, Apr 14, 2025 | 1 minute read | Updated at Monday, Apr 14, 2025

Jun Yeop(Johnny) Na

To control NPCs with natural language we need to define more Unreal Components that will streamline LLM access in an Unreal Engine environment.

We need:

  1. Unreal character class that has components needed for controlling via LLM.
  2. A request handler class that handles requesting to online LLM servers and parsing their response.

Define Plugin “LlmNpc”

Create “LlmNpc” Folder in Project’s Plugins directory.

© 2024 - 2025 Junyeop Na Dev

🌱 Powered by Hugo with theme Dream.