If ApplyGameplayEffectToSelf is performed on the Hit event, access will be disabled

skyhelper
Wed, 24 Aug 2022 08:26:28 +0000
Blueprint

I wanted to create a Hit event with a simple Projectile, Get Ability System Component for the Hit actor, and give it a GameplayEffect with ApplyGameplayEffectToSelf, but I get the following I get the following error.

Blueprint Runtime Error: “No access to try to read property CallFunc_GetAbilitySystemComponent_ReturnValue”. Node: ApplyGameplayEffectToSelf Graph: EventGraph Function: Execute Ubergraph BP Sample Projectile Blueprint: BP_SampleProjectile

I tried changing the Hit event to Begin Overlap under the same conditions and it was handled as normal.
Can someone please enlighten me on this?

EngineVersion 5.0.3