I am having a bit of trouble using gameplay effects inside of abilities. I have screenshots posted below but the problem I am having is that when a character applies a GameplayEffect to another character, I can’t seem to apply the damage attribute from the character using the ability to the other character that I want to apply the effect on. What happens is that it will use the attribute from the character that is receiving the effect.
I believe the problem has something to do with not using the TargetData and passing in my own data structure when activating the ability in order to get the appropriate target. I would use the TargetData but I have no idea how the WaitTargetData task works. I have been playing around with it but can’t see to get it to give me information.
The only information I could find (which actually told me about the WaitTargetData task) was here https://forums.unrealengine.com/showthread.php?57988-GameplayAbilities-questions&p=216701&viewfull=1#post216701.
Update - I did some debugging and it’s failing at line 1388 of GameplayAbility.cpp which reads “FScopedGameplayCueSendContext GameplayCueSendContext;”. It seems like it can’t get the GameplayCueManager but I have it setup. I was able to use a print to verify that the TargetData from actor did contain my target actor.
Update 2 - Ok, I think I actually fixed it. It seems that it requires a GameplayCueManager to be specified or else it will crash. I had specified it but I did it in DefaultEngine.ini instead of DefaultGame.ini. The post below explains it.