struct

FDamageContext

The responsibility chain behind a hit (UE: DamageCauser + Instigator + EventInstigator). causer is the thing that physically dealt it (projectile, trap, the swinging weapon actor); instigator is the pawn/actor responsible; instigatorController is that pawn's controller (the player/AI to credit).

Module
Game
Header
#include "Gameplay/DamageTypes.h"
Namespace
Mowo

Properties

TypeNameDescription
MObject*causerDefault nullptr.
AActor*instigatorDefault nullptr.
AController*instigatorControllerDefault nullptr.

Public functions

ReturnsNameDescription
FDamageContextBuildResolve the chain from a causer actor: if the causer is a pawn it is its own instigator; the controller is read off the responsible pawn.

Function details

Build

C++
static FDamageContext Build(AActor* causer, AActor* instigatorOverride = nullptr)

Resolve the chain from a causer actor: if the causer is a pawn it is its own instigator; the controller is read off the responsible pawn. instigatorOverride names the responsible pawn when the causer is not one (a rocket's instigator is the shooter, not the rocket).

Generated from Gameplay/DamageTypes.h via game.json · Nov 5, 2026Version 1.0.0