How To Throw A Rock At An Enemy To Stun Them | Pick Up Rocks - Unreal Engine 4 Tutorial

Поделиться
HTML-код
  • Опубликовано: 24 дек 2024

Комментарии • 61

  • @sitraash
    @sitraash 3 года назад +22

    Guys, if ever you have a problem with the enemy not react on rock. It is necessary AT THE STONE COLLISION AND THE ENEMY COLLISION enable a check mark "Simulation Generates Hit Event".

    • @megtwin
      @megtwin 3 года назад

      Thanks so much, works great now!

    • @DivineHonor
      @DivineHonor 2 года назад +1

      That fixed my issue, thanks! Before I could stun/knockdown the AI once, and not after that. Now it works every time.

  • @davidedemurodominijanni9889
    @davidedemurodominijanni9889 2 года назад +1

    A very useful tutorial I really hoped to find for one of my game concepts I'm working at. I just wonder if you could do a second chapter of this, to eventually fix any possible difference between UE4 and UE5 but, most importantly, to take advantage of the animations we got from assets where the actor reacts to the hit from different reactions, if an actor is hit from behind his body reaction is definitely different from the one happening being hit from the front or rather from the side. It can look easy to achieve but I believe it's actually a bit tricky instead. Thanks Matt, as always.

  • @annugamer24
    @annugamer24 6 месяцев назад +1

    Hey I want this same concept for my game but i want to make the ai TO STUN WHEN shooted by sun bullets from pistol How to do it ? BTW AWSOME TUTORIAL🤗🤗

  • @megtwin
    @megtwin 3 года назад

    This was so much fun, thanks!!

  • @SanneBerkhuizen
    @SanneBerkhuizen 4 года назад +4

    Maybe I'll make a "throw stuff at stuff" game for the kids this weekend.

    • @MattAspland
      @MattAspland  4 года назад

      Ah that sounds like great fun for you all! Enjoy it if you make it :)

    • @logandoejogando...7532
      @logandoejogando...7532 3 года назад

      @@MattAspland I can't move my box or stone forward, I did it step by step in 4.26

  • @Zireael_Daifuku
    @Zireael_Daifuku 3 года назад

    Incredible results for me, thanks !

  • @GageAulik
    @GageAulik 3 года назад

    The way your BP is set up for stunning is really nice, You can even set it up to have AI stunning AI. Thank you!!!!

  • @officialrhythmicthoughts
    @officialrhythmicthoughts 3 года назад

    This will be very helpful for a faltering system I'm planning to implement into a game

  • @megtwin
    @megtwin 2 года назад +1

    How can we keep the AI from turning on the ground between anims?

  • @TopWorld-bl5os
    @TopWorld-bl5os Год назад

    good tuturial but my rock dosent move and freeze in sky what can i do ?

  • @randomgamer8405
    @randomgamer8405 4 года назад

    Great tutorial! my game is going AMAZING right now I just need help on spawning things, then when you touch it gets destroyed.

    • @MattAspland
      @MattAspland  4 года назад

      Thank you! That's great news, so happy for you! I have a video on player respawning, that might be of some help. It respawns upon the actor being destroyed.
      Respawn Tutorial: ruclips.net/video/TaGE3e93hM8/видео.html

  • @mateuszsieczka7989
    @mateuszsieczka7989 4 года назад +1

    Hey, that's cool! Although I have a idea for net tutorials - it'd be great if You made combat fighting system with AI - I think many people need it. Anyway waiting for next tutorial!

    • @MattAspland
      @MattAspland  4 года назад +3

      Hey, thanks! Great idea, I have a video on punching an AI, so a basic version of what you are after. That may help for the time-being. I can look into what you asked for too though :)
      Punching Tutorial: ruclips.net/video/1jxElVA7g3c/видео.html

    • @mateuszsieczka7989
      @mateuszsieczka7989 4 года назад +2

      @@MattAspland Yeah, I think I watched this one. I'd really love to see fighting with cold steel or without weapon (just hands and kicks for example) with advanced AI. I think that'd be quite interesting for You to make, and helpful for us to watch :)

    • @MattAspland
      @MattAspland  4 года назад +1

      @@mateuszsieczka7989 Yeah okay, great idea thanks. I'll definitely add that to my list, great suggestion, I agree with you yeah :)

  • @cheemayt1530
    @cheemayt1530 2 года назад

    Thanks, But I have a issue - When I throw rock and it goes to the ground than it just keeps on going it doesn't stop like yours.
    Does any one has a solution?
    Thank you :)

  • @boundlessunrealengine9467
    @boundlessunrealengine9467 3 года назад

    Great!

  • @beamngsamurai8
    @beamngsamurai8 4 года назад

    Hell yeah thank you!

  • @foofuhh
    @foofuhh 3 года назад

    Hi, if I want to pick up more than 1 rock, it unable pick the 2nd rock it only able to pick the latest created. So what I can do to can pick more than 2?

    • @MattAspland
      @MattAspland  3 года назад +1

      In the blueprint where we have our "Interact" action mapping, if you select this and in the top right un-tick "Consume Input", does this help?

    • @foofuhh
      @foofuhh 3 года назад +1

      @@MattAspland Yey, that work, thank so much

    • @MattAspland
      @MattAspland  3 года назад +1

      @@foofuhh That's great to hear, no worries :)

  • @MZONE3D
    @MZONE3D 4 года назад

    Nice one dude... how about throwing doing a tutorial on throwing a rock to create a distraction?

    • @MattAspland
      @MattAspland  4 года назад

      Thank you man, and sounds like a great idea! I can definitely add it to my list :)

  • @stevenwynn819
    @stevenwynn819 4 года назад +1

    What a great tutorial! I love the idea of characters running around and throwing rocks at each other.

    • @MattAspland
      @MattAspland  4 года назад

      Thank you Steve! That sounds like a really fun idea! :)

  • @elbozomemeoriginals7296
    @elbozomemeoriginals7296 3 года назад

    cool but when already stun the first animation its become idle animation and then play the second animation why

    • @MattAspland
      @MattAspland  3 года назад

      Hey, do you mean that the stun animation ends and becomes idle?

    • @elbozomemeoriginals7296
      @elbozomemeoriginals7296 3 года назад +1

      stunned animation and then idle then getting up animation

    • @MattAspland
      @MattAspland  3 года назад

      @@elbozomemeoriginals7296 Right okay, inside of the animation montage, did you make sure to un-tick "Enable Auto Blend Out"?

    • @elbozomemeoriginals7296
      @elbozomemeoriginals7296 3 года назад +1

      wait that exists? okay i straight untick that

    • @elbozomemeoriginals7296
      @elbozomemeoriginals7296 3 года назад +1

      now how to make the enemy stunned and stop rotating

  • @KGCofficial7
    @KGCofficial7 3 года назад

    Also can you do a video on throwing rock to damage an ai with a healthbar

  • @slidecode6318
    @slidecode6318 2 года назад

    It doesn't work when you go backwards for some reason but these are great videos keep it up

  • @elbozomemeoriginals7296
    @elbozomemeoriginals7296 3 года назад

    A BuG it is where i take the rock then throw and i can throw it multiple times

  • @pseudonym108
    @pseudonym108 2 года назад

    Two things. First, let's say i just want to have the rock deleted after it hits a wall or floor; how would I do that? Second, the projectile doesn't adjust on the characters Y axis. i.e There is no way to throw the projectile straight up. I'm sure there's a simple way with the blueprints you went over in this video but, I've tried everything that I thought would work. I'm sure someone is smart enough out there to answer this for me. Oh and as a bonus question; is there a way to also rotate the projectile on the Y once thrown?

  • @fleurbird
    @fleurbird 4 года назад

    I always thought g was for Gooi...
    Which is dutch for throw.

    • @MattAspland
      @MattAspland  4 года назад +1

      Oh that makes sense, I much prefer that one. I might use it from now on :)

  • @stefanleroux8750
    @stefanleroux8750 4 года назад

    Hi Sir. Is there maybe a chance for you to make a tutorial on ledge climbing? I followed Ryan Laley's tutorial. Very good tut but there are a lot that goes wrong that he do not seem to want to make right like when you climp , the character can not jump again and when you are near any ledge the character grabs even lower ledges and drag you under the floor and the character sometimes rols 45 degrees etc. The tutorial is great for normal flat obstacle's like cubes but not for rocks and other services. Would be so greatfull. And lastly are you going to let people donate to you through Patrion. This is the best way for me to donate to you for your great tutorials. Please consider starting Patrion for you RUclips page. I think it is only fair. Have a great day.

    • @MattAspland
      @MattAspland  4 года назад

      Hi Stefan, I think a ledge climbing tutorial would be great. Definitely something I'll want to look into for the future, and I'll make sure to not leave in any bugs. Also, thank you so much for wanting to donate! You can currently either donate via my ko-fi, or straight to my PayPal. I can look at a Patreon too if that would be easier :) Links are below, have a great day too!
      Ko-Fi: ko-fi.com/mattaspland
      PayPal: Send to the email 'matthew.aspland@gmail.com'

  • @it_rooster
    @it_rooster 3 года назад

    Excellent tutorial! I really appreciate it.
    If I wanted to change the angle which the projectile flies out, lets say I want it to spawn at the spawn location on the pawn and fly towards a crosshair in the middle of the viewport, how would you recommend doing this? The thing I'm finding difficult is because the crosshair is a UI element I can't use it as a vector in space, the viewport isn't pointing in front of the player if that makes sense. Do you have any suggestions?
    Thank You!

    • @MattAspland
      @MattAspland  3 года назад +2

      Hey, thank you! What you could do is get the size of the window, and then get the "Size X" and "Size Y". Then the centre for this would be "Size X / 2" and Size Y / 2". You can get the size of the window using "Get Viewport Size". Hope this helps :)

  • @juancharistheashawu
    @juancharistheashawu 3 года назад +2

    Haha imagine when there are some AIs and when you hit one of them with the rock, it starts to play animation (like angry anim) and come overs closest ai (like to attacks it).

  • @TNTMEKKI
    @TNTMEKKI 4 года назад

    hi my frinde can you give me this animation ( Landing and Rolling ) in your link drive.google

    • @MattAspland
      @MattAspland  4 года назад

      Hey, I should have a link to the animation in the description of the video

    • @TNTMEKKI
      @TNTMEKKI 4 года назад +1

      @@MattAspland mixamo not work for me just up your animation in google link

    • @MattAspland
      @MattAspland  4 года назад

      ​@@TNTMEKKI Okay no worries, I've just uploaded it now.
      drive.google.com/drive/folders/1Z_ZXP_3DPepZ3rWUBHr8hsF41TaWkIYi?usp=sharing

  • @elbozomemeoriginals7296
    @elbozomemeoriginals7296 3 года назад

    NoW MaKE a ToWEr DefENse TuTorIAl (Or YOu CaNT DO ThAt)