i’m currently creating some VERY basic AI in C++. I only want to use the Behavior Tree, but create the rest in C++.
I got everything working except the service. In the service, i’m calling the “SearchEnemy()” function that searches and sets the next enemy. This works if i create the logic in Blueprints. If i do the same in the C++ version of the Service, the service shows up with “No Tick” in the Tree.
Seem like ReceiveTick must be a blueprintfunction to able to execute. Maybe u can try put UFUNCTION() on the ReceiveTick, and it will consider that as BlueprintFuction ?
i will have a look at it. The API says it is a BlueprintImplementableEvent. This means i CAN be overriden through a Blueprint version. But i still don’t understand why this Service can’t be created in C++.
I can even choose the C++ file (no BP child) in the Service list. But like i showed, i gives the no tick error.
Let’s see if adding UFUNCTION or just create a child BP class will fix something.
This is all by design. To create a C++ implementation of a service you need to derive from UBTService not UBTService_BlueprintBase Let me know if you encounter any issues while doing so.
Hey, thanks MieszkoZ (: I didn’t pick the UBTService, because when i looked into the API for it, i missed some function that i thought i would need.
For now i created everything in BP. I will try it with the UBTService when i come to convert this into C++. Thanks for your answer so far. I will report back when i encounter issues!