Behavior Tree Service in C++
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.
First one is C++, second one is BP:
Here is my C++ code for the service:
Same thing in BP:
So what exactly am i missing here? Do i need to create services in BP? I don't think so x)
I can't find any information on how to setup a service in C++. Do i miss something to let that service tick?
asked Mar 26 '15 at 01:39 AM in C++ Programming
This is all by design. To create a C++ implementation of a service you need to derive from
answered Mar 30 '15 at 09:07 AM
This what i found from source code ReceiveTick will be call here
and the ReceiveTickImplementations only valid if it have the blueprint function name ReceiveTick in blueprint.
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 ?
answered Mar 26 '15 at 07:10 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here