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.
| Subsystem | Type | Role |
|---|---|---|
UAFTBattleSubsystem | World | The running battle: state, views, training, network, events. |
UAFTMatchSubsystem | Game instance | Menus flow data: roster, stages, modes, match setup, results. See Game Modes. |
UAFTUISubsystem | Game instance | Screens navigation and feedback: Show Confirmation, Show Alert, PushNotification, ShowLoading / HideLoading. See UI Overview. |
UAFTInputSubsystem | Game instance | Devices, player slots, bindings, gamepad vibration (PlayRumble, SetRumbleEnabled, IsRumbleEnabled). See Input and Controls. |
UAFTOnlineSubsystem | Game instance | Lobbies and handshake. See Online Backends. |
Battle subsystem
Match
| Function | Description |
|---|---|
StartBattle(Config), EndBattle | Start / stop a battle in the current world (the battle game mode does it for you). |
IsBattleRunning, GetMatchConfig | Current battle and its FAFTMatchConfig. |
GetMatchPhase, GetRound, GetRoundsToWin, GetTimerSeconds, GetFrame | Match state. |
SetPaused, IsPaused, CanPause | Pause (offline modes). |
Views
| Function | Returns |
|---|---|
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, GetBattleCamera | Presentation and camera actors. |
Views are read-only copies: the simulation is never modified from Blueprint.
Training and debug
| Function | Description |
|---|---|
GetFrameMeter, GetTrainingStats, GetInputLog | Training data, see Training Mode. |
SetTrainingDisplay, GetTrainingDisplay | Training HUD toggles. |
TrainingResetPositions(Side, bSwapSides), TrainingSetDummyController(Controller, CpuLevel) | Training menu actions (bSwapSides: player 1 restarts on the right). |
SetShowBoxes, GetShowBoxes | Box viewer. |
Network
| Function | Description |
|---|---|
GetNetMode | Offline, SyncTest, LoopbackRollback, Online, Spectator. |
GetSessionStatus | Idle, Connecting, Synchronizing, Running, Interrupted, Disconnected. |
GetNetworkStats, GetLastRollbackFrames | Ping, rollback length, frame advantage. |
Events
| Event | Parameters |
|---|---|
OnSimEvent | FAFTSimEventView: type, frame, fighter, target, location, tag, value, counter hit. Every hit, block, throw, cue, projectile, wall (bounce, splat, break), round and match event. |
OnPhaseChanged | EAFTMatchPhase: Intro, RoundIntro, Fight, RoundEnd, RoundResult, MatchEnd. |
OnMatchEnded | FAFTMatchResult: winner (0 / 1, 2 = draw, -1 = aborted), rounds of each team, duration, disconnected, desynced. |
OnSessionStatusChanged | EAFTSessionStatus. |
OnPauseChanged | Paused flag. |
Overridable classes
| Class | Blueprint events |
|---|---|
AAFTBattleGameMode | On Match Started, On Match Finished. |
AAFTFighterActor | On Action Changed (new / previous action), On Field State Changed (tag team). |
AAFTBattlePresentation | Play Cue (override to route the cues; the parent plays the cue set entry), On Sim Event. |
AAFTCueEffect | On Cue Effect(Strength), Get Strength, Get Progress: base of the effect actors of the cues. |
AAFTBattleCamera | On Camera Updated, GetHorizontalHalfFOVTan (visible horizontal half field of view, see Battle camera), AddImpact(Strength) and GetShakeTrauma (camera shake). |
UAFTCinematicDirector | On Cinematic Started, On Cinematic Finished, StopCinematic, IsPlayingCinematic. |
UAFTBattleHUD | On HUD Update, On Phase Changed, On Battle Event, Get Phase Banner. |
UAFTTrainingHUD | On Training Update. |
UAFTWallRules, UAFTWallRules_WallBreak | On Wall Contact, On Hit, On Combo End (with a UAFTWallBlueprintContext). Set in the battle rules' Wall Rules, see Walls. |
UAFTCpuBrain, UAFTCpuDeckBrain | On Think (with an AFT CPU Context), Evaluate Custom Condition. Set in a CPU profile's Brain, see Custom CPU Brains. |
| Every screen | On Menu Action, Close Screen. |
Set your subclasses in Project Settings (AFT Game > Presentation and UI).
Data helpers
| Function | Description |
|---|---|
UAFTActionAsset::ComputeFrameData | Startup, 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::GetMainAnimation | The animation of the first Animation event of an action (None without one). |
UAFTUIPolicy helpers | Play UI Sound, Get Controller Silhouettes, Get Game Title: see Custom UI. |
UAFTFixedLibrary | Make 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.