Skip to main content

Blueprint API

The simulation is C++, but everything a game needs around it is exposed to Blueprint, and its extension points can be written in Blueprint too, with deterministic nodes: frame events, state graph conditions, CPU brains and wall rules. The main entry points are subsystems, available from any Blueprint with their Get node.

SubsystemTypeRole
UAFTBattleSubsystemWorldThe running battle: state, views, training, network, events.
UAFTMatchSubsystemGame instanceMenus flow data: roster, stages, modes, match setup, results. See Game Modes.
UAFTUISubsystemGame instanceScreens navigation and feedback: Show Confirmation, Show Alert, PushNotification, ShowLoading / HideLoading. See UI Overview.
UAFTInputSubsystemGame instanceDevices, player slots, bindings, gamepad vibration (PlayRumble, SetRumbleEnabled, IsRumbleEnabled). See Input and Controls.
UAFTOnlineSubsystemGame instanceLobbies and handshake. See Online Backends.

Battle subsystem​

Match​

FunctionDescription
StartBattle(Config), EndBattleStart / stop a battle in the current world (the battle game mode does it for you).
IsBattleRunning, GetMatchConfigCurrent battle and its FAFTMatchConfig.
GetMatchPhase, GetRound, GetRoundsToWin, GetTimerSeconds, GetFrameMatch state.
SetPaused, IsPaused, CanPausePause (offline modes).

Views​

FunctionReturns
GetTeamView(Team)FAFTTeamView: members, active member, rounds won, meter / max meter, tag and assist cooldowns (0 = ready), CPU flag.
GetFighterView(FighterIndex)FAFTFighterView: fighter data, current action and frame, health, red health, max health, health percent, combo count / damage received, on field, KO, in stun, hit stun, block stun.
GetNumFighters, GetActiveFighter(Team)Fighter indices.
GetFighterActor(FighterIndex)The AAFTFighterActor displaying a fighter.
GetPresentation, GetBattleCameraPresentation and camera actors.

Views are read-only copies: the simulation is never modified from Blueprint.

Training and debug​

FunctionDescription
GetFrameMeter, GetTrainingStats, GetInputLogTraining data, see Training Mode.
SetTrainingDisplay, GetTrainingDisplayTraining HUD toggles.
TrainingResetPositions(Side, bSwapSides), TrainingSetDummyController(Controller, CpuLevel)Training menu actions (bSwapSides: player 1 restarts on the right).
SetShowBoxes, GetShowBoxesBox viewer.

Network​

FunctionDescription
GetNetModeOffline, SyncTest, LoopbackRollback, Online, Spectator.
GetSessionStatusIdle, Connecting, Synchronizing, Running, Interrupted, Disconnected.
GetNetworkStats, GetLastRollbackFramesPing, rollback length, frame advantage.

Events​

EventParameters
OnSimEventFAFTSimEventView: type, frame, fighter, target, location, tag, value, counter hit. Every hit, block, throw, cue, projectile, wall (bounce, splat, break), round and match event.
OnPhaseChangedEAFTMatchPhase: Intro, RoundIntro, Fight, RoundEnd, RoundResult, MatchEnd.
OnMatchEndedFAFTMatchResult: winner (0 / 1, 2 = draw, -1 = aborted), rounds of each team, duration, disconnected, desynced.
OnSessionStatusChangedEAFTSessionStatus.
OnPauseChangedPaused flag.

Overridable classes​

ClassBlueprint events
AAFTBattleGameModeOn Match Started, On Match Finished.
AAFTFighterActorOn Action Changed (new / previous action), On Field State Changed (tag team).
AAFTBattlePresentationPlay Cue (override to route the cues; the parent plays the cue set entry), On Sim Event.
AAFTCueEffectOn Cue Effect(Strength), Get Strength, Get Progress: base of the effect actors of the cues.
AAFTBattleCameraOn Camera Updated, GetHorizontalHalfFOVTan (visible horizontal half field of view, see Battle camera), AddImpact(Strength) and GetShakeTrauma (camera shake).
UAFTCinematicDirectorOn Cinematic Started, On Cinematic Finished, StopCinematic, IsPlayingCinematic.
UAFTBattleHUDOn HUD Update, On Phase Changed, On Battle Event, Get Phase Banner.
UAFTTrainingHUDOn Training Update.
UAFTWallRules, UAFTWallRules_WallBreakOn Wall Contact, On Hit, On Combo End (with a UAFTWallBlueprintContext). Set in the battle rules' Wall Rules, see Walls.
UAFTCpuBrain, UAFTCpuDeckBrainOn Think (with an AFT CPU Context), Evaluate Custom Condition. Set in a CPU profile's Brain, see Custom CPU Brains.
Every screenOn Menu Action, Close Screen.

Set your subclasses in Project Settings (AFT Game > Presentation and UI).

Data helpers​

FunctionDescription
UAFTActionAsset::ComputeFrameDataStartup, active, recovery, total, on hit, on block, damage and guard type of an action.
UAFTActionAsset::SetAnimation(Animation, PlayRate)Editor scripts: one Animation event over the whole action, looped only when the action loops from its first frame.
UAFTActionAsset::GetMainAnimationThe animation of the first Animation event of an action (None without one).
UAFTUIPolicy helpersPlay UI Sound, Get Controller Silhouettes, Get Game Title: see Custom UI.
UAFTFixedLibraryMake Fixed, Break Fixed and conversion to float of the fixed-point values (tools and UI only).

The editor functions (fighter wizard, cinematics, default content) are in Python and Editor Scripting.