# TickTask doesn't work

**URL:** <https://forums.unrealengine.com/t/ticktask-doesnt-work/335078>\
**Category:** Plugins\
**Tags:** Behavior-Tree, unreal-engine, Plugins, CPP, question\
**Created:** [October 12, 2015, 6:29pm UTC](https://forums.unrealengine.com/t/ticktask-doesnt-work/335078 "2015-10-12T18:29:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![artemavrin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@artemavrin](https://forums.unrealengine.com/u/artemavrin)\
**Post date:** [October 12, 2015, 6:29pm UTC](https://forums.unrealengine.com/t/ticktask-doesnt-work/335078/1 "2015-10-12T18:29:50Z")

</div>

Hello! I created new BehaviorTree task. In ExecuteTask Event I have:

```
  if (bSomeBool)
    	{
    		APawn* AIPawn = OwnerComp.GetAIOwner()->GetPawn();
    		PlayerController->Possess(AIPawn);
    	}

```

If bSomeBool == true then TickTask Event doesn’t work at all. Any ideas?

---

<div class="post-metadata">

**Author:** ![OrcParty](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@OrcParty](https://forums.unrealengine.com/u/OrcParty)\
**Post date:** [April 28, 2016, 8:25am UTC](https://forums.unrealengine.com/t/ticktask-doesnt-work/335078/2 "2016-04-28T08:25:46Z")

</div>

/\*\* if set, task search will be discarded when this task is selected to execute but is already running \*/  
UPROPERTY(EditAnywhere, Category=Task)  
uint32 bIgnoreRestartSelf : 1;

```
/** if set, TickTask will be called */
uint32 bNotifyTick : 1;

/** if set, OnTaskFinished will be called */
uint32 bNotifyTaskFinished : 1;
```

---

<div class="post-metadata">

**Author:** ![Rockam](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rockam](https://forums.unrealengine.com/u/Rockam)\
**Post date:** [March 30, 2017, 10:34am UTC](https://forums.unrealengine.com/t/ticktask-doesnt-work/335078/3 "2017-03-30T10:34:09Z")

</div>

setting bNotifyTick in the task constructor is not enough to make TickTask fire, I tried and still doesn’t work

---

<div class="post-metadata">

**Author:** ![Rockam](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rockam](https://forums.unrealengine.com/u/Rockam)\
**Post date:** [March 30, 2017, 11:01am UTC](https://forums.unrealengine.com/t/ticktask-doesnt-work/335078/4 "2017-03-30T11:01:46Z")

</div>

I found the solution here: [Custom BT Tasks not ticking - AI - Unreal Engine Forums](https://answers.unrealengine.com/questions/342144/custom-bt-tasks-not-ticking.html)

Basically you mut override ExecuteTask too and make it return EBTNodeResult::InProgress;
