How To Make A Grappling Hook - Unreal Engine 4 Tutorial

  Рет қаралды 22,985

Matt Aspland

Matt Aspland

Күн бұрын

Hey guys, in today's video, I'm going to be showing you how to create a grappling hook system for your games in Unreal Engine 4. In this, the player will shoot a grappling hook, and the player will 'fly' over to where this landed. You can also hit right mouse button at any time to cancel the movement along the grapple.
Grappling Hook 3D Model: sketchfab.com/3d-models/grapp...
You must use the below sentence for attribtion:
"Grappling Hook" (skfb.ly/6DvAF) by Leafdroid is licensed under Creative Commons Attribution (creativecommons.org/licenses/b....
#Ue4 #UnrealEngine4 #Ue4Tutorial
___________________________________________________________________________
00:00 - Intro
00:11 - Overview
00:54 - Tutorial
22:29 - Final Overview
22:50 - Outro
___________________________________________________________________________
Unreal Engine 4 Tutorials Playlist: • Unreal Engine 4 Tutorials
The Basics Of Nodes Playlist: • The Basics Of Nodes In...
Blender Tutorials Playlist: • Blender Tutorials
___________________________________________________________________________
If you enjoy make sure to subscribe: / @mattaspland
Join My Discord Server: / discord
Follow Me On Instagram: / matt_aspland_
___________________________________________________________________________
If you want to support me, you can PayPal me at "matt.aspland.1@gmail.com". This is by no means expected or required. It is just a nice support :)
Link to PayPal: www.paypal.com/
You can also support me on Ko-Fi following this link: ko-fi.com/mattaspland
Thank you :)
___________________________________________________________________________
♫Music By♫
●Kronicle - Chill Noons
●Soundcloud - / the-chemist-10

Пікірлер: 102
@The_Twisted_Monk
@The_Twisted_Monk 3 жыл бұрын
Nice tutorial Matt, Giving us a variety of different content that's awesome. This is a great way to leave the area in stealth games, adventure games. You can use this in many ways, nice one. Just keep doing what you're doing Matt, you're my Dude.
@MattAspland
@MattAspland 3 жыл бұрын
Thank you Russel! You're absolutely correct, so many different ways of utilising this! Thanks again :)
@TheF4c3m4n
@TheF4c3m4n 3 жыл бұрын
Oh, this is Nice! Great Tutorial as Always! Thanks Matt!
@MattAspland
@MattAspland 3 жыл бұрын
Thank you so much man! That means a lot :)
@g-dojjo
@g-dojjo 3 жыл бұрын
This is great tutorial!! Thanks for your effort!!
@MattAspland
@MattAspland 3 жыл бұрын
Thank you so much, it's greatly appreciated :)
@aaronjenkins2225
@aaronjenkins2225 3 жыл бұрын
Another cracking tutorial mate :O SO... MANY... IDEAS... NOW!!! 😂
@MattAspland
@MattAspland 3 жыл бұрын
Thanks so much man! Haha yeah, too many ideas to handle at once lol!
@Grand-warden
@Grand-warden 3 жыл бұрын
Thanks for this video 😃
@MattAspland
@MattAspland 3 жыл бұрын
No problem! Happy to help :)
@IsVexx
@IsVexx 3 жыл бұрын
Honestly, I see these videos in my recommend every day, though I'm not using them at the moment, I love just clicking and seeing how its all done and ill be back later to use them for a uni project I'm doing. but you're on the grind and everything is straight to the point and helpful :) good work, keep it up, brother. possibly do something for implementing a gun, firing etc, on the 3rd person blueprint. instead of using the first :) (just because I've what I'm doing that's all it would be nice to know how to do)
@MattAspland
@MattAspland 3 жыл бұрын
Thank you so much man, I really appreciate you sticking around and watching them. Hope they're helpful for you! And I can definitely look into that yep, good luck with your uni project when you start it, and thanks again :)
@IsVexx
@IsVexx 3 жыл бұрын
@@MattAspland always try show support where i can :)
@MattAspland
@MattAspland 3 жыл бұрын
@@IsVexx Thank you again :)
@GaryParkin
@GaryParkin 3 жыл бұрын
Thank you Matt. this was really helpful. I took your code and change it to give me more functionality: I added a static mesh to the end of the gun that disappears when the grapple is shot, giving the illusion of shooting a real gun. Next I added the ability to shoot the grapple w/o pulling me, cancel the grapple (reload the gun with F), and the grapple doesn't pull me until I press the right mouse button. I'm looking into how to make a rope... Also in case the grapple didn't hit anything, I can't grapple into thin air. :D I wish I could send you my project, Matt. This was really helpful indeed!! What would really rock is if I could pull an actor to me like a gravity gun. Just reverse the pulling process I guess.
@MattAspland
@MattAspland 3 жыл бұрын
No problem Gary, it's always a pleasure to help! Those sounds like great ideas too, really adds to the immersion and make it slightly more user friendly. It sounds amazing, so glad to hear what you're doing with it! And yeah I think reversing it would be good, and make sure to have the set actor location target as the hit actor/component, not your character :)
@bingbongbangbingboom
@bingbongbangbingboom 3 жыл бұрын
Nice!
@MattAspland
@MattAspland 3 жыл бұрын
Thank you man! :)
@stevenwynn819
@stevenwynn819 3 жыл бұрын
Someone could use this as the basis for a fun little game! So cool!
@MattAspland
@MattAspland 3 жыл бұрын
Definitely yeah, it would make a nice little game jam idea maybe! Thanks Steve :)
@Mrkev217
@Mrkev217 3 жыл бұрын
amazing
@MattAspland
@MattAspland 3 жыл бұрын
Thanks so much!
@justanameonyourscreen5954
@justanameonyourscreen5954 3 жыл бұрын
Ohhh...nice one!
@MattAspland
@MattAspland 3 жыл бұрын
Thanks man! :)
@ZGX3D
@ZGX3D 3 жыл бұрын
Would it be possible for you to make a tutorial about rope swinging? Swinging with a rope around a fixed point in a certain radius.
@umtoztrk8833
@umtoztrk8833 3 жыл бұрын
good job man
@MattAspland
@MattAspland 3 жыл бұрын
Thanks so much!
@vladaslav
@vladaslav 3 жыл бұрын
These tutorials are awesome keep up the good work. Are you doing any future videos on QTE's / interactive animations / cutscene's?
@MattAspland
@MattAspland 3 жыл бұрын
Thank you so much! And I've thought about QTEs before, so yeah I could definitely add those to my list :)
@vladaslav
@vladaslav 3 жыл бұрын
@@MattAspland really excited i can't wait 😁
@tutiteil3580
@tutiteil3580 3 жыл бұрын
Really sweet and enjoyable content! Could you try doing a tutorial on how to make an AI that's chasing you play an animation when its right in front of you, then resume chasing you if you move away and so on? (lets say its in front of you then it'll play the attack animation, then running away will make the animation end and the normal chasing one will play till the AI is in range again)
@MattAspland
@MattAspland 3 жыл бұрын
Thanks so much man! Great idea, I have a video on AI with chase but I can look into adding to this with your attack animations too :) AI Chase: kzbin.info/www/bejne/hWmbgaqCdr50pcU
@hveeproductions
@hveeproductions 3 жыл бұрын
Is there a way to add a cable??
@MorganFuse
@MorganFuse 3 жыл бұрын
Hello. First of all, thanks for what you are doing. You're one of my favorite teachers on KZbin. I know, it's a bit off topic, but maybe you are in a mood to answer. I want to make a character (let him be Sphere), and, i also want to have a meshes that will act like magnets. So, my idea is to find a way, to magnetize player in a direction of the magnet, and disable that force on button release. For instance. Sphere standing on floor, and there is a wall at the end of the room. While player is holding ("E" for example), player is moving towards that wall, when player released a button, the sphere is in a free fall. Important, it is side scroller game. Could you please point me in a right direction. Thanks in a advance!
@MattAspland
@MattAspland 3 жыл бұрын
Hey, thank you so much, that means a lot to me! I'm always happy to help :) And that sounds like a great idea, you could maybe use a physics constraint or a timeline to be slowly setting the actors location gradually closer and closer to the wall. I can add it to my video list if you like :)
@MorganFuse
@MorganFuse 3 жыл бұрын
@@MattAspland It would be awesome! Thanks again.
@MattAspland
@MattAspland 3 жыл бұрын
@@MorganFuse Great, and no problem man! :)
@catnoir8036
@catnoir8036 3 жыл бұрын
Thaaaaannnkkkksssss yyyoooouuuuu
@MattAspland
@MattAspland 3 жыл бұрын
Happy to help!! :)
@BananerdDev
@BananerdDev 2 жыл бұрын
Hey Matt, I'm using this for a 2D game and the grappling aspect works but it moves me over my other platforms in the world and drops me out of the world, do you have an idea as to how I could make the player collide with objects as the grapple pulls them?
@nobIeseis
@nobIeseis 3 жыл бұрын
what can i do if i want cancel the pulling and inherit the speed? like a catapult
@danegamedev
@danegamedev 3 жыл бұрын
Thanks . Now i can make spiderman 5
@MattAspland
@MattAspland 3 жыл бұрын
No problem, and that's great!
@GatlingHawk
@GatlingHawk 8 ай бұрын
I have a system in place for grapple. Grapple point is a World vector, how would i get it to attach to a moving object?
@mikebloomfield8955
@mikebloomfield8955 3 жыл бұрын
Hey, I'm trying to get this working in a blank project and at the moment the grapple is spawning but not moving anywhere. Think it's to do with the SpawnActor since that's the only thing different to yours - what should I be putting in the Spawn Transform? Tried a few different things but can't get it to work?
@kyoo5877
@kyoo5877 2 жыл бұрын
can i change the speed to fast for the hook ?
@hackzndat5794
@hackzndat5794 2 жыл бұрын
Hi how would I have to do this for third person?
@NoteNote447
@NoteNote447 2 жыл бұрын
Hey Matt, I followed your tutorial and the grappling hook that i fire out flies like normal but it goes straight through the ground! Any ideas i could try to fix what went wrong?
@EF12-07
@EF12-07 3 жыл бұрын
How can I create a rope between the grapple and the character for make the ilussion the character is pulling the rope for moving? Obviously creating it when the grapple will be in some wall or floor and the character is moving to the grapple
@LeoDoesEverything
@LeoDoesEverything 3 жыл бұрын
i suggested this one
@MattAspland
@MattAspland 3 жыл бұрын
Thanks for the suggestion! It was a great idea :)
@nickb7170
@nickb7170 2 жыл бұрын
Hey, ive been following the tutorial step by step however i have no idea how you set the grapplehook object type to projectile. It is simply not an option for me (3:16). Furthermore if i press my e key (which is my fire key) the grapple spawns but always collides with the 3rd person character or just falls to the ground instead of being shot out. How can i fix that?
@pro.giciel9084
@pro.giciel9084 2 жыл бұрын
Because « projectile » object type is a custom he created. Go into project settings then collision to create your own object type so you can custom his collision behavior toward the other object. Yours was still the default so it still collide with your character you have to make it so it ignore or overlap the object type your character is
@bluethumbbuttoneek9465
@bluethumbbuttoneek9465 3 жыл бұрын
How could I create a double grapple hook system tho like links double hook shot or attack on titan style grappling
@k-kayla
@k-kayla 2 жыл бұрын
The grapple goes infinitely if it does not collide with an object. How would I destroy the actor if it goes too far or after a certain amount of time?
@marcellemarais7610
@marcellemarais7610 3 жыл бұрын
Thanks for the awesome Tuts. I have run into an issue at 3:41 where I do not have the option to set my Object Type to projectile in the Box Colliders Collision settings? Any help would be super appreciated.
@MattAspland
@MattAspland 3 жыл бұрын
Hey, sorry to hear that. Did you make sure to set the "Collision Presets" as "Custom" as well?
@magnusvital6766
@magnusvital6766 3 жыл бұрын
@@MattAspland i dont have the projectile option here too, itos not appearing, and yes, im sure the collision box is selected and the presets are custom too
@AverageDev
@AverageDev 2 жыл бұрын
@@MattAspland not showin for me also
@daithiluck8749
@daithiluck8749 2 жыл бұрын
@@MattAspland Same for me.
@aliahmedgaming6083
@aliahmedgaming6083 3 жыл бұрын
👍🏻 I want a player hide in Cupbord or locker in First person Please
@MattAspland
@MattAspland 3 жыл бұрын
Hi, great idea! My video for hiding under a bed should work the same way. Hopefully you can apply that knowledge into the cupboard too. But if not, let me know and I can do a video on it!
@Duo_Septimdra
@Duo_Septimdra 3 жыл бұрын
I'm following this tutorial but trying to modify it to pull in enemies rather than pull the player towards a location. Wish me luck?
@denizforst
@denizforst 2 жыл бұрын
if it doesnt hit anything for like in 5 second, how can we destroy it. Cus it goes on. Coundt figure out myself. Anyone knows how?
@evechannel8076
@evechannel8076 3 жыл бұрын
Hi can you make tutorial for pushing object for 3rd person character?
@MattAspland
@MattAspland 3 жыл бұрын
Hey, I have a video on this already actually. I'll link it here, hope it helps :) kzbin.info/www/bejne/a5TJlJSLhZ2leNE
@evechannel8076
@evechannel8076 3 жыл бұрын
@@MattAspland Wow!! thankyou🌸🌸
@MattAspland
@MattAspland 3 жыл бұрын
@@evechannel8076 No problem! :)
@Spartan9285
@Spartan9285 2 жыл бұрын
how do i import the grapple hook and what format should i use cause im trying to drag and drop but its not letting me put it in due to it being a unknown file?
@JasonBrillJr
@JasonBrillJr Жыл бұрын
Did you ever figure this out? It's importing as multiple files for me instead of one single grapple hook
@therealcaptaincorn7847
@therealcaptaincorn7847 3 жыл бұрын
It does not work for the third person
@dolphinpods4238
@dolphinpods4238 3 жыл бұрын
could you make one for throwing grenades? if not i understand
@MattAspland
@MattAspland 3 жыл бұрын
Great suggestion, I can look into that yeah :)
@Prd.RoyalHaze
@Prd.RoyalHaze 2 жыл бұрын
Hey Matt, I don't seem to have 'projectile' as an option when changing the object type, any reason why that would be?
@Prd.RoyalHaze
@Prd.RoyalHaze 2 жыл бұрын
May have found the issue, i'm using the third person template, so i created a new collision object preset, called it projectile set collision to block. hopefully it works.
@Prd.RoyalHaze
@Prd.RoyalHaze 2 жыл бұрын
also think you fixed it at the end of the video too 👍
@maxpowerful7992
@maxpowerful7992 2 жыл бұрын
I had a problem where it moved me around then flung me out of the map
@sebastianacosta8601
@sebastianacosta8601 2 жыл бұрын
muchisimas gracias, no he encontrado tutorial en español pero el tuyo se entiende bastante bien aun que me cueste el ingles XD, has sido de mucha ayuda, gracias
@gamingdevil49
@gamingdevil49 2 жыл бұрын
Please someone help me! every time i try to shoot the projectile it just falls to the ground for no reason (I am using firstpersontemplate)
@marceline1485
@marceline1485 2 жыл бұрын
I'm also having this issue. Did you happen to find a fix for it?
@gamingdevil49
@gamingdevil49 2 жыл бұрын
@@marceline1485 I couldn't find a way to fix it yet. Maybe you can fix it by duplicating the first person projectile instead of making a new one
@RozvozceTofu
@RozvozceTofu Жыл бұрын
how to replicate it?
@GBTC2011
@GBTC2011 3 жыл бұрын
Projectile is not an option in the collision for the grapple.
@MattAspland
@MattAspland 3 жыл бұрын
Hi, have you made sure you've got the box collision selected and not the static mesh?
@itssynckt395
@itssynckt395 3 жыл бұрын
Hey dude I appreciate the tutorial but I’m a bit stuck im adding this into a third person game so I don’t have the spawn actor code and I can’t figure out what to put for the spawn actor transform I’ve done the rest of the code and I think it’s the reason it’s not working if you can give me a hand it would be greatly appreciated!
@MattAspland
@MattAspland 3 жыл бұрын
Hey bro, no worries. Below I've posted a screenshot of what you'll need. The second image is an example where I am shooting a bullet in a third person project, from the below video which is also linked. You'll need to the rotation of your gun, and a reference in that gun for where the bullet will spawn. Again, in my video I linked here I go over shooting in third person, it's aimed at a sniper, but I'm sure you can merge the two videos so it is the grapple. Hope this helps out man, and let me know if there is anything else I can do :) Screenshots: imgur.com/a/4wMqy65 Third Person Shooting: kzbin.info/www/bejne/eJWoYZlvnJ6Uodk
@itssynckt395
@itssynckt395 3 жыл бұрын
@@MattAspland thanks dude I’ll definitely try it and let you know if it workd
3 жыл бұрын
@@MattAspland hello dear matt, great tutorial on this. How can i make this like: when the hook hits any movable object, it grabs and pulls it back to the tp character. hope to hear from you! keep up the good work.
@MattAspland
@MattAspland 3 жыл бұрын
@ Hey mate, we'd pretty much just want to reverse it, so we don't move from A to B, we move B to A. And instead of instead of having the character, we'd want to access the mesh or blueprint hit, by using the "Event Hit" in our projectile, and using the hit actor, or hit component in there. I do have a video on a magnet system, maybe you can adapt it to merge the two together. Let me know if you need a hand! kzbin.info/www/bejne/rqi9kneap9Frpc0
3 жыл бұрын
@@MattAspland dear Matt! thanks for the help, i cant donate from paypal so please tell me another way around if you have so i can contribute to your work! i will tell you if i get succesful, i am a newbie and wanna create a hypercasual pull game in VS mode. tell if you are interested.
@Penthast
@Penthast 3 жыл бұрын
This is an amazing tutorial man, but I still have a bit of an issue, when I shoot the grapple into a direction with no objects it just keeps going indefinetly and doen´t let me use it again. I tried changing the lifespan but that didn´t solve anything. Does anyone else have this problem?
@Penthast
@Penthast 3 жыл бұрын
Never mind, I fixed it by adding a delay of 6 seconds after the spawn that resets isGrappling? to False. regardless of whether it collided
@printedmarble6985
@printedmarble6985 3 жыл бұрын
@@Penthast your comment here helped me a lot so thank you!
@k-kayla
@k-kayla 2 жыл бұрын
@@Penthast Can you explain how you did this, if you remember?
@daithiluck8749
@daithiluck8749 2 жыл бұрын
My projectile spawns then drop to the ground.
@gamingdevil49
@gamingdevil49 2 жыл бұрын
I have the same issue
@drakonstudios2880
@drakonstudios2880 3 жыл бұрын
monster you can hear me out becouse im a monster i cannot bring out because i'm a flonker
How To Create Randomly Spawning Items - Unreal Engine 4 Tutorial
6:20
Урок 14 | Unreal Engine 4 / 5 Искусственный интеллект -Толпа и Respawn  AI
17:12
Cyberstars - Как создать игру
Рет қаралды 20 М.
ИРИНА КАЙРАТОВНА - АЙДАХАР (БЕКА) [MV]
02:51
ГОСТ ENTERTAINMENT
Рет қаралды 1,4 МЛН
I Built a Shelter House For myself and Сat🐱📦🏠
00:35
TooTool
Рет қаралды 33 МЛН
Add a GLITCH Transition in Premiere Pro
1:29
Flick Edit
Рет қаралды 200
The Easiest Way to Make a Simple Enemy AI in Unreal Engine 5
15:40
Gorka Games
Рет қаралды 243 М.
Learning Unreal Engine in One Month to make a Game!
15:25
Will Hess
Рет қаралды 41 М.
Save And Load Player Stats - Unreal Engine Tutorial
12:46
Matt Aspland
Рет қаралды 38 М.
How To Make An Object Follow A Spline Path - Unreal Engine Tutorial
16:11
How to Make a Grappling Hook in Unreal Engine 5 - Very Easy
10:02
Remaking Pathfinder Grapple in Unreal Engine 4
2:55
DavieDev
Рет қаралды 19 М.
Grapling Hooks are Cool! So I made one!
6:26
Floky
Рет қаралды 15 М.