# C++ Decorator for AI Behavior Tree doesn't work

**URL:** <https://forums.unrealengine.com/t/c-decorator-for-ai-behavior-tree-doesnt-work/447230>\
**Category:** AI\
**Tags:** Behavior-Tree, decorator, unreal-engine, question, CPP\
**Created:** [April 14, 2019, 5:24pm UTC](https://forums.unrealengine.com/t/c-decorator-for-ai-behavior-tree-doesnt-work/447230 "2019-04-14T17:24:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZhenZhongLuo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZhenZhongLuo](https://forums.unrealengine.com/u/ZhenZhongLuo)\
**Post date:** [April 14, 2019, 5:24pm UTC](https://forums.unrealengine.com/t/c-decorator-for-ai-behavior-tree-doesnt-work/447230/1 "2019-04-14T17:24:11Z")

</div>

Hi, Epic Community,  
I recently tried to implement a Decorator for my AI Behavior Tree using C++, so I started at the very simple step, which was to check if the Decorator first by printing out a message onto the screen. However, it didn’t work. Here are the screenshots about my work. Can anyone share some tutorials about C++ AI Behavior Tree Decorator please? Thank you very much for your help.

 ![274184-3.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/2/7/427423b20ae42eacff1cff068b840f4c4f9c6bc6.png)
