# Character launch-dash BluePrint

**URL:** <https://forums.unrealengine.com/t/character-launch-dash-blueprint/360594>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [June 13, 2016, 7:56am UTC](https://forums.unrealengine.com/t/character-launch-dash-blueprint/360594 "2016-06-13T07:56:34Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![The\_VBR](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@The\_VBR](https://forums.unrealengine.com/u/The_VBR)\
**Post date:** [June 13, 2016, 7:56am UTC](https://forums.unrealengine.com/t/character-launch-dash-blueprint/360594/1 "2016-06-13T07:56:34Z")

</div>

I would like to create a directional dash to the direction that the camera is facing for a set distance(maybe i can change that to charged with min-max values?who knows).im as new as it gets to using ue4 so i would appreciate any kind of help 🙂

---

<div class="post-metadata">

**Author:** ![Vaei](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/vaei/32/710746_2.png) [@Vaei](https://forums.unrealengine.com/u/Vaei)\
**Post date:** [June 13, 2016, 10:35am UTC](https://forums.unrealengine.com/t/character-launch-dash-blueprint/360594/2 "2016-06-13T10:35:46Z")

</div>

A basic solution would be something like this in your Character blueprint.

Get the world rotation of your camera → Get Forward vector. This essentially gives you a “Direction” the camera is facing in. Multiplying that vector by a value will “grow” (scale) the vector, so this is the distance you want the dash to cover. Then you can use the Launch Character node.

If you want to ‘charge’ it just increase the float amount given to grow the forward vector, for example ‘On Pressed’ could set a boolean to true, and ‘On Released’ could set the boolean to false, in your Tick Event check if the boolean is true, and if it is then it could go something like (ChargeAmount \* DeltaSeconds \* ChargeRate). Just be sure to reset it when they release after launching them. If you want a min/max then you can use a Clamp node on that float.

Here is an image example for the basic setup (without the charge).

 ![94424-dasheg.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/8/d/18d99cf0753152780bd5865c8c6e959f2afe3cbf.png)

---

<div class="post-metadata">

**Author:** ![The\_VBR](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@The\_VBR](https://forums.unrealengine.com/u/The_VBR)\
**Post date:** [June 13, 2016, 12:50pm UTC](https://forums.unrealengine.com/t/character-launch-dash-blueprint/360594/3 "2016-06-13T12:50:21Z")

</div>

Thanks ill try it and return asap to tell you if it worked.thanks for the answer either  
way

---

<div class="post-metadata">

**Author:** ![The\_VBR](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@The\_VBR](https://forums.unrealengine.com/u/The_VBR)\
**Post date:** [June 13, 2016, 12:58pm UTC](https://forums.unrealengine.com/t/character-launch-dash-blueprint/360594/4 "2016-06-13T12:58:59Z")

</div>

I dont know how to create the ‘dash distance’’ float.without that part its just smaller jump btw.can you please help?sorry for bothering you for such simple stuff

---

<div class="post-metadata">

**Author:** ![The\_VBR](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@The\_VBR](https://forums.unrealengine.com/u/The_VBR)\
**Post date:** [June 13, 2016, 1:12pm UTC](https://forums.unrealengine.com/t/character-launch-dash-blueprint/360594/5 "2016-06-13T13:12:38Z")

</div>

ok i got i just had to make my own float(first time i do that’pat-pat’).thanks,it works only like a charm.only thing left to figure out is how to still go the distance if im slightly facing the ground ,which currently leads to a smaller-distance-dash

---

<div class="post-metadata">

**Author:** ![Vaei](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/vaei/32/710746_2.png) [@Vaei](https://forums.unrealengine.com/u/Vaei)\
**Post date:** [June 13, 2016, 7:56pm UTC](https://forums.unrealengine.com/t/character-launch-dash-blueprint/360594/6 "2016-06-13T19:56:12Z")

</div>

Right click the ‘return value’ on GetWorldRotation and the ‘In Rot’ on Get forward vector and click ‘Split Struct Pin’ on both, try it with only the Yaw connected to the other’s Yaw, removing the pitch should solve that, however you probably don’t need the roll either. Give it a go.

---

<div class="post-metadata">

**Author:** ![The\_VBR](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@The\_VBR](https://forums.unrealengine.com/u/The_VBR)\
**Post date:** [June 13, 2016, 9:14pm UTC](https://forums.unrealengine.com/t/character-launch-dash-blueprint/360594/7 "2016-06-13T21:14:20Z")

</div>

I got everything up and running.also added ignore gravity and friction during the dash so i can travel a set distance no matter where i am facing.also used stop-move and set movement to fix the end dash behavior.you were really helpfull 😉  
please check another question i got about a grappling hook cause its driving me crazy.hf

---

<div class="post-metadata">

**Author:** ![Vaei](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/vaei/32/710746_2.png) [@Vaei](https://forums.unrealengine.com/u/Vaei)\
**Post date:** [June 13, 2016, 9:33pm UTC](https://forums.unrealengine.com/t/character-launch-dash-blueprint/360594/8 "2016-06-13T21:33:06Z")

</div>

Glad you got it working! Don’t forget to accept the answer if you’re satisfied with the solution.
