Making GameplayTasks in Blueprint

Hi!

I’m trying to make a Blueprint based Gameplaytask to run some logic, but I can’t seem to derive from this directly. Even after converting the project into C++ and adding GameplayTask as a module I don’t see it. Looking at the code it’s not defined as “Blueprintable” (only as BlueprintType) so I wonder if there is any such support for Blueprint Gameplaytasks?

My fall-back is to roll my own Gameplaytask_BlueprintBase for this.

Cheers!

Hi ! Haven’t I seen you somewhere? :wink:

You’re way better at this stuff than I am, so it may be hubris to think I’d be of any help. Still, it can’t hurt so I poked around in the source a little. It looks like everything task related is implemented in C++. A comment in AbilityTask.h mentions a “K2Node_” function. It looks like that’s how they interface to blueprints.

The K2 stuff is all magic to me, so yeah, a C++ blueprint-base is how I’d go.

It does indeed look like it has no BP support by default, I’ll look more into the AbilityTasks although that looks to be ‘ability system’ only, but I’ll look more into that direction. Thanks for taking the time to look into it!

1 Like