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
| Type | Name | Description |
|---|---|---|
MObject* | causer | Default nullptr. |
AActor* | instigator | Default nullptr. |
AController* | instigatorController | Default nullptr. |
Public functions
| Returns | Name | Description |
|---|---|---|
FDamageContext | Build | 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. |
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