I noticed you can have Event Dispatchers in State Tree Tasks. But how, and from where can you bind to one?
Thanks.
I noticed you can have Event Dispatchers in State Tree Tasks. But how, and from where can you bind to one?
Thanks.
Hey man, did you find an answer for this? I’m really not sure if Event Dispatchers are even a thing for State Trees, since they have their own data type for Dispatchers and Listeners. And Events use Gameplay Tags, so what are Event Dispatchers in ST even for?
Hi, in the latest UE5.7 (I don’t know when it started to be like that), you can see the solution if you start the 3rd Person type “Combat Player” as a new project.
This is the EventGraph of BP_CombatEnemy. You call it and notify the state tree. What state tree? The one calling the function. Scroll back to the beginning here and you see:
#ST_Task_ComboAttack you need to check. Doing this, you can find:
The binding. It’s obviously not the main state tree you need to check. But if you do, you will find the call of “ComboAttack” in the Main_ST, like here:
Bind it via ST_Tasks like this example. You can easily follow all this here in the latest version (5.7) of the 3rd Person Template that includes Combat Player.
Hope that helped!