FGameplayEffectContextHandle::AddInstigator

Sets the instigator and effect causer.

Choose your operating system:

Windows

macOS

Linux

References

Module

GameplayAbilities

Header

/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/GameplayEffectTypes.h

Include

#include "GameplayEffectTypes.h"

Syntax

void AddInstigator
(
    class AActor * InInstigator,
    class AActor * InEffectCauser
)

Remarks

Sets the instigator and effect causer. Instigator is who owns the ability that spawned this, EffectCauser is the actor that is the physical source of the effect, such as a weapon. They can be the same.