# How do I create camera toggles, double jump, ragdoll and melee attacks for my character?

**URL:** <https://forums.unrealengine.com/t/how-do-i-create-camera-toggles-double-jump-ragdoll-and-melee-attacks-for-my-character/279662>\
**Category:** Character & Animation\
**Tags:** suggestion, unreal-engine, Blueprint, question\
**Created:** [April 5, 2014, 6:10am UTC](https://forums.unrealengine.com/t/how-do-i-create-camera-toggles-double-jump-ragdoll-and-melee-attacks-for-my-character/279662 "2014-04-05T06:10:55Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ClaverFlav](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ClaverFlav](https://forums.unrealengine.com/u/ClaverFlav)\
**Post date:** [April 5, 2014, 6:10am UTC](https://forums.unrealengine.com/t/how-do-i-create-camera-toggles-double-jump-ragdoll-and-melee-attacks-for-my-character/279662/1 "2014-04-05T06:10:55Z")

</div>

those four quickshot vids are awesome… id love to see more

heres some random examples id love to see.

- toggling locked/free thirdperson  
camera (locked is always looking over  
shoulder)
- melee attacks
- double jump
- triggering ragdoll

post stuff youd want to see!

---

<div class="post-metadata">

**Author:** ![PeterLNewton](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PeterLNewton](https://forums.unrealengine.com/u/PeterLNewton)\
**Post date:** [April 5, 2014, 11:23am UTC](https://forums.unrealengine.com/t/how-do-i-create-camera-toggles-double-jump-ragdoll-and-melee-attacks-for-my-character/279662/2 "2014-04-05T11:23:04Z")

</div>

I can possibly help with one of those items. Here is another answers thread on Double Jumping.

> **[Is there a way to stimulate jumping using Blueprint?](https://forums.unrealengine.com/questions/13455/blueprint-double-jumping.html)**
>
> I feel that this is stemming from my lack of experience with Blueprint, but I shall ask nonetheless. So far I have the Blueprint set up to work properly, however I must use the “Jump” function (may not be the appropriate term) in order to actually...

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_759e5c3a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_759e5c3a](https://forums.unrealengine.com/u/anonymous_user_759e5c3a)\
**Post date:** [April 5, 2014, 1:22pm UTC](https://forums.unrealengine.com/t/how-do-i-create-camera-toggles-double-jump-ragdoll-and-melee-attacks-for-my-character/279662/3 "2014-04-05T13:22:40Z")

</div>

Hello,

To answer the another part of your question, here is how to trigger ragdoll:

> **[Trigger character ragdoll with input key event?](https://forums.unrealengine.com/questions/24561/trigger-character-ragdoll-with-input-key-event.html)**
>
> Hello, You will want to drag off a get reference to your mesh and then use a “Set Simulate Physics” node set to true. In this example, I am in a player controller, casting to my character, so that when I press ‘F’ the character’s Skeletal Mesh...

Camera toggle:

> **[Foundational 3rd Person Camera to Shoulder Camera Toggle](https://forums.unrealengine.com/showthread.php?1509-Foundational-3rd-Person-Camera-to-Shoulder-Camera-Toggle)**
>
> Howdy All! I’ve seen a few questions on AnswerHUB as well as on the forums on how to get a toggle shoulder-type camera for the Blueprint Thirdperson Template. While this is in no means perfect, it should be able to get you started so that you can...

As for melee combat, could you please describe in more detail the type of combat you would like? There are a lot of amazing resources on the [Wiki](https://wiki.unrealengine.com/Category:Tutorials), the [Forums](https://forums.unrealengine.com/forumdisplay.php?12-Community-Content-Tools-and-Tutorials) and the AnswerHub. Please let me know how I can further assist.

Cheers!

---

<div class="post-metadata">

**Author:** ![ClaverFlav](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ClaverFlav](https://forums.unrealengine.com/u/ClaverFlav)\
**Post date:** [April 5, 2014, 5:07pm UTC](https://forums.unrealengine.com/t/how-do-i-create-camera-toggles-double-jump-ragdoll-and-melee-attacks-for-my-character/279662/4 "2014-04-05T17:07:37Z")

</div>

Thanks guys, those links rock!

i ended up making melee combat work last night, and i meant the basis of melee was what i was looking for…like setup a collider attached to a socket(in the skeletal mesh), mouse click (in the character class) triggers a animation (in the animblueprint), do event beginoverlap (in the skeletal mesh) that deals damage, and a seperate killable class with a custom receive damage that destroys the actor and spawns an explosion effect (like the quickshot projectile video)

im thinking of making a youtube video of it now… but i should community check it for efficacy

But its the videos is what i would really want, and i figure others would too.

thx

---

<div class="post-metadata">

**Author:** ![Jenovah\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jenovah\_1](https://forums.unrealengine.com/u/Jenovah_1)\
**Post date:** [April 6, 2014, 9:44pm UTC](https://forums.unrealengine.com/t/how-do-i-create-camera-toggles-double-jump-ragdoll-and-melee-attacks-for-my-character/279662/5 "2014-04-06T21:44:23Z")

</div>

ClaverFlav,

I’d love to see what you came up with for Melee I am trying to figure that out now.

---

<div class="post-metadata">

**Author:** ![ClaverFlav](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ClaverFlav](https://forums.unrealengine.com/u/ClaverFlav)\
**Post date:** [April 7, 2014, 5:19am UTC](https://forums.unrealengine.com/t/how-do-i-create-camera-toggles-double-jump-ragdoll-and-melee-attacks-for-my-character/279662/6 "2014-04-07T05:19:21Z")

</div>

Hey Jenovah (awesome name by the way)

For my melee i did the following in the thirdperson example game

added a spherecollider and parented it to a socket (the wrist) of a custom mesh and brought in a swing animation

on leftclick i set a bool variable in “myCharacter” class to true.

in the animgraph of the animblueprint tied to that character (you have to double click the animblueprint in the content browser to see it) the anim graph on the surface looks like only two nodes, but in fact has some crazy sauce inside it.

double click it to go in and i duplicated the jump anim one, changed its transition thingy, which also has stuff inside, and made it look at my variable [[which for some reason i couldnt get it to see that bool on my character so i had to make another bool that was attached to the animblueprint that simply was the same as the one on the character, which im positive is a bad way]]

once it was actually playing the animation i added a onbeginoverlap to the character class, that dealt damage to the hit actor.

then made a recieve damage in the enemy (in this case a duplicate of this character with the exception of a new animblueprint) once their health(custom variable) reached zero destroy actor.

its been working for awhile, but its buggy. im thinking of contributing to the wiki to see what a better way would be.

---

<div class="post-metadata">

**Author:** ![ClaverFlav](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ClaverFlav](https://forums.unrealengine.com/u/ClaverFlav)\
**Post date:** [April 21, 2014, 7:48am UTC](https://forums.unrealengine.com/t/how-do-i-create-camera-toggles-double-jump-ragdoll-and-melee-attacks-for-my-character/279662/7 "2014-04-21T07:48:40Z")

</div>

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

---

<div class="post-metadata">

**Author:** ![MCaddict](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MCaddict](https://forums.unrealengine.com/u/MCaddict)\
**Post date:** [December 10, 2015, 3:31pm UTC](https://forums.unrealengine.com/t/how-do-i-create-camera-toggles-double-jump-ragdoll-and-melee-attacks-for-my-character/279662/8 "2015-12-10T15:31:37Z")

</div>

Here is doulbe jump [[Part 20]-Aiming! Double Jump and more!- How to make an advanced FPS game - Unreal Engine 4 - YouTube](https://www.youtube.com/watch?v=axxs7Z-Mw2U)
