Gameplay systems with AI: Enhanced Input, GAS, DataTables and AI assets

Updated 2026-11-28 · Unreal MCP Pro 1.0.3

Gameplay setup in Unreal means creating many small assets that reference each other: input actions and mapping contexts, abilities, effects and tags, data tables, Blackboards. Naming them consistently and wiring the references is tedious by hand and quick for an AI. This guide covers the tools for it in Unreal MCP Pro 1.0.3.

Why this suits an AI

The work is structural rather than visual: the AI creates the assets, reads them back with the get_* tools, and keeps names and paths consistent across dozens of files. You then do the parts that are graph logic.

Enhanced Input

create_input_action          { "name": "IA_Jump", "path": "/Game/Input", "value_type": "Boolean" }
create_input_action          { "name": "IA_Move", "path": "/Game/Input", "value_type": "Axis2D" }
create_input_mapping_context { "name": "IMC_Default", "path": "/Game/Input" }
add_action_mapping           { "context": "/Game/Input/IMC_Default", "action": "/Game/Input/IA_Jump", "key": "SpaceBar" }
add_action_mapping           { "context": "/Game/Input/IMC_Default", "action": "/Game/Input/IA_Jump", "key": "Gamepad_FaceButton_Bottom" }
get_input_info               { "context": "/Game/Input/IMC_Default" }

value_type is Boolean, Axis1D, Axis2D or Axis3D. Keys use Unreal key names (W, SpaceBar, LeftMouseButton, Gamepad_LeftX...). Triggers and modifiers (set_input_trigger) are not added in 1.0.3; set them on the mapping in the editor.

Gameplay Ability System

Enable the Gameplay Abilities plugin first (enable_plugin with GameplayAbilities, then restart the editor). get_gameplay_info reports whether it is available.

add_gameplay_tag        { "tag": "Ability.Attack.Melee", "comment": "Basic melee swing" }
add_gameplay_tag        { "tag": "State.Stunned" }
create_gameplay_ability { "name": "GA_MeleeAttack", "path": "/Game/Abilities" }
create_gameplay_effect  { "name": "GE_Stun", "path": "/Game/Abilities", "duration_policy": "HasDuration" }

Abilities and effects are Blueprints with GameplayAbility and GameplayEffect parents (or your own C++ subclass via parent_class). duration_policy is Instant, Infinite or HasDuration. New tags may need an editor restart before they show up in tag pickers. The ability graph itself is edited by hand.

DataTables, data assets and curves

create_data_table   { "name": "DT_Weapons", "path": "/Game/Data", "row_struct": "/Game/Data/S_Weapon" }
add_data_table_row  { "table": "/Game/Data/DT_Weapons", "row_name": "Sword", "values": { "Damage": 25, "Range": 150 } }
get_data_table      { "table": "/Game/Data/DT_Weapons" }
create_curve        { "name": "C_DamageFalloff", "path": "/Game/Data", "curve_type": "Float" }
create_data_asset   { "name": "DA_Settings", "path": "/Game/Data", "class": "PrimaryDataAsset" }

A DataTable needs a row struct (a Blueprint struct or a C++ FTableRowBase type). Filling rows from a list you paste into the chat is a good use of the AI: it turns a spreadsheet-like list into consistent rows and reads them back to check.

Behavior Trees, Blackboards and navigation

create_blackboard     { "name": "BB_Guard", "path": "/Game/AI" }
set_blackboard_key    { "blackboard": "/Game/AI/BB_Guard", "key_name": "TargetActor", "key_type": "Object" }
set_blackboard_key    { "blackboard": "/Game/AI/BB_Guard", "key_name": "PatrolPoint", "key_type": "Vector" }
create_behavior_tree  { "name": "BT_Guard", "path": "/Game/AI" }

Adding nodes to the tree (add_bt_node) and EQS queries (create_eqs) do not act in 1.0.3; build the tree in the Behavior Tree editor. Navigation does act: set_nav_mesh_settings (agent radius, height, step height, slope), add_nav_modifier, build_navigation, and test_path to check that a path exists between two points. get_ai_info lists AI controllers in the level.

PCG and Sequencer: what acts

Example prompt

Set up input for a third-person prototype under /Game/Input: IA_Move (Axis2D),
IA_Look (Axis2D), IA_Jump (Boolean) and IA_Interact (Boolean), and IMC_Default with
keyboard/mouse and gamepad keys for each. Then add gameplay tags Ability.Attack.Melee
and State.Stunned, create GA_MeleeAttack and GE_Stun (HasDuration) under /Game/Abilities,
and show me get_input_info and get_gameplay_info at the end.

Get Unreal MCP Pro
$5 once on itch.io, free updates.

itch.io · $5

More guides