# Launch character does not work for AI

**URL:** <https://forums.unrealengine.com/t/launch-character-does-not-work-for-ai/383961>\
**Category:** AI\
**Tags:** dash, Behavior-Tree, unreal-engine, Blueprint, question\
**Created:** [February 4, 2017, 9:36pm UTC](https://forums.unrealengine.com/t/launch-character-does-not-work-for-ai/383961 "2017-02-04T21:36:38Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![CODA225](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/coda225/32/643061_2.png) [@CODA225](https://forums.unrealengine.com/u/CODA225)\
**Post date:** [February 4, 2017, 9:36pm UTC](https://forums.unrealengine.com/t/launch-character-does-not-work-for-ai/383961/1 "2017-02-04T21:36:38Z")

</div>

Hi guys, I wanted to create a Dash ability to my AI character but seems the Launch character node does not work for AI characters. I tried two methods in these posts but they all cause problems to my behavior tree. If I use the stop brain logic method, in the behavior tree, the current node will be stuck inside the dash task leaf. If I use the falling movement mode method, it does not move my character. I’m using UE 4.13.2

Get brain component - stop logic - Launch - restart logic:  
[[Launch Character not working properly - Character & Animation - Unreal Engine Forums](https://answers.unrealengine.com/questions/133814/launch-character-not-working-properly.html)][1]  
Change movement methods to falling:  
[[https://answers.unrealengine.com/questions/53382/is-the-launch-character-node-interrupted-or-overri.html](https://answers.unrealengine.com/questions/53382/is-the-launch-character-node-interrupted-or-overri.html)][2]

My logic is: AI sees player - AI check the distance with the player - if \<600 - AI dash to player

this is the dash task, I have both method nodes there, but they dont work:

 ![124995-dashtask.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/f/5/6f59c7941d2dd001b3e6d9469adc40b03a3858aa.png)

this is my behavior tree:

 ![124996-behaviortree.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/f/6/3f6762faa71f48fef116985bf3039677c858aaa4.png)

this is when I set back the brain or the movement mode, in Animation Notifier of my dash animation:

 ![124997-animnotifier.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/1/6/f1649f033b7417c3dc153678d6239eef6c6d3416.png)

Is there any way to work around this? I can use lerp+setlocation but that would go through wall…Thank you guys!

---

<div class="post-metadata">

**Author:** ![Black\_Phoenyx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Black\_Phoenyx](https://forums.unrealengine.com/u/Black_Phoenyx)\
**Post date:** [February 4, 2017, 9:53pm UTC](https://forums.unrealengine.com/t/launch-character-does-not-work-for-ai/383961/2 "2017-02-04T21:53:16Z")

</div>

something like this: [- YouTube](https://www.youtube.com/watch?v=BPPdQs1c4rE)

Use the movement speed for max walk speed and temporarily set it to a higher value for the time of the dashing and then set it back to normal afterwards. That is how the demo video is doing it.

 ![83063-dashwithcollision.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/c/c/3cc96f80ccc86ca5e57fb7849cf8958cfb8012de.png)

In the image it is setup for the player character but the same can be used with AI you just have to call it from your dash function.

---

<div class="post-metadata">

**Author:** ![CODA225](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/coda225/32/643061_2.png) [@CODA225](https://forums.unrealengine.com/u/CODA225)\
**Post date:** [February 4, 2017, 10:08pm UTC](https://forums.unrealengine.com/t/launch-character-does-not-work-for-ai/383961/3 "2017-02-04T22:08:31Z")

</div>

Thank you for the reply! Somehow it’s not working for me. I did this in my dash function, but nothing happened. Maybe it’s different in player character and the AI, like the launch character node.

---

<div class="post-metadata">

**Author:** ![CODA225](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/coda225/32/643061_2.png) [@CODA225](https://forums.unrealengine.com/u/CODA225)\
**Post date:** [February 4, 2017, 10:09pm UTC](https://forums.unrealengine.com/t/launch-character-does-not-work-for-ai/383961/4 "2017-02-04T22:09:18Z")

</div>

This is in my Dash function.

 ![125003-speed.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/e/3/3e3486086c8d1e8938dc80e7679ab54073c6cabb.png)

---

<div class="post-metadata">

**Author:** ![Black\_Phoenyx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Black\_Phoenyx](https://forums.unrealengine.com/u/Black_Phoenyx)\
**Post date:** [February 4, 2017, 10:13pm UTC](https://forums.unrealengine.com/t/launch-character-does-not-work-for-ai/383961/5 "2017-02-04T22:13:40Z")

</div>

How are you setting Hero Char variable? and is it a direct reference to the AI character? Since I posted my answer I tested it with AI directly in the AI character BP so it should work from the BT, another option is to set it up in the AI characterBP and use a custom event and call that event from the BT.

---

<div class="post-metadata">

**Author:** ![CODA225](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/coda225/32/643061_2.png) [@CODA225](https://forums.unrealengine.com/u/CODA225)\
**Post date:** [February 4, 2017, 10:20pm UTC](https://forums.unrealengine.com/t/launch-character-does-not-work-for-ai/383961/6 "2017-02-04T22:20:16Z")

</div>

I’m setting the Hero Char by this (this is inside the leaf node “dash” in BT):

 ![125004-sethero.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/b/3/1b3062f72f018840b7d3903fe1b079f5be32dc70.png)

I will also try this with a custom event to see what went wrong. Thank you for the reply!

---

<div class="post-metadata">

**Author:** ![Black\_Phoenyx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Black\_Phoenyx](https://forums.unrealengine.com/u/Black_Phoenyx)\
**Post date:** [February 4, 2017, 10:24pm UTC](https://forums.unrealengine.com/t/launch-character-does-not-work-for-ai/383961/7 "2017-02-04T22:24:40Z")

</div>

During your testing you may want to increase the delay amount and add a print string so that you can better verify that it is firing.

---

<div class="post-metadata">

**Author:** ![CODA225](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/coda225/32/643061_2.png) [@CODA225](https://forums.unrealengine.com/u/CODA225)\
**Post date:** [February 4, 2017, 10:32pm UTC](https://forums.unrealengine.com/t/launch-character-does-not-work-for-ai/383961/8 "2017-02-04T22:32:02Z")

</div>

I still cant achieve the effect in your video…Maybe I did something wrong somewhere else. However, I found this post that does the exact thing I wanted for me:  
[link text](https://answers.unrealengine.com/questions/349447/alternative-to-launch-character.html)

This method is working for me, but I think I will keep trying your method later to figure out what I did wrong.

Anyway, thanks for the help!
