UE5 Lyra Health and Damage System

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ต.ค. 2024
  • How to Heal, Damage and Kill an Actor in UE 5 Lyra
    00:39 Target Dummy Blueprint
    02:35 Gameplay Demo: Doing Damage & Killing
    03:47 Gameplay Effects: Damage or Heal
    04:29 Ability Blueprint: How to Apply a Damage Effect (or Heal)
    05:25 How to Kill an Actor (short version)
    06:12 Intro to C++ Code Review
    06:36 C++ Code Review: Actor with Abilities
    09:09 C++ Code Review: Actor with Abilities and Health
    10:34 C++ Code Review: Target Dummy Actor
    11:39 C++ Tip: Use Object Initializer
    12:53 Blog Review
    13:39 How to Kill an Actor (detailed version)
    16:02 Conclusion
    See the related Blog: x157.github.io...
    or the Github code: github.com/x15...

ความคิดเห็น • 32

  • @aneesaziz3611
    @aneesaziz3611 7 หลายเดือนก่อน

    Thanks you saved my day. Great tutorial for actor damage, i was scratching my head off for this.

  • @GokdenizCetin
    @GokdenizCetin ปีที่แล้ว

    Hey! I just wanted to say thank you for your Common UI github dev notes

    • @XistGG
      @XistGG  ปีที่แล้ว +1

      You're welcome!

  • @unrealdevop
    @unrealdevop ปีที่แล้ว +1

    Man, your stuff is great. Keep up the good work.

    • @XistGG
      @XistGG  ปีที่แล้ว +1

      Thanks, will do!

  • @az-ru2084
    @az-ru2084 ปีที่แล้ว +1

    thanks for content

    • @az-ru2084
      @az-ru2084 ปีที่แล้ว +1

      How can I add C++ XCL_ActorWithAbilities code into my lyra project? Since I'm deving with only BP...

  • @dellins1152
    @dellins1152 ปีที่แล้ว

    thanks! really appreciate the content and the 1440p! :) keep it up!

    • @XistGG
      @XistGG  ปีที่แล้ว +1

      I like to cast TH-cam to the TV... 4K content is definitely preferred!

  • @goncalosoares8483
    @goncalosoares8483 ปีที่แล้ว

    Awesome stuff

  • @maxkipchumba7604
    @maxkipchumba7604 ปีที่แล้ว

    the animations are so smooth,
    is it stylized or its just the high fps?

  • @masterz0
    @masterz0 4 หลายเดือนก่อน

    What if I wanted to create an ally Dummy? In which he doesn't take damage from me and my team?

  • @KevinMack-gl7dv
    @KevinMack-gl7dv ปีที่แล้ว

    This is really fantastic work - thank you for sharing it! I'm running into a linker error on ULyraAbilitySystemComponent::GetPrivateStaticClass(void) when I try to create a default subobject from ULyraAbilitySystemComponent - did you have to do anything in your own child component to get around this?

    • @XistGG
      @XistGG  ปีที่แล้ว

      Often when you try to use Lyra C++ classes you'll need to export them with `LYRAGAME_API`.

  • @Cyviel
    @Cyviel ปีที่แล้ว

    Your content is really good, keep up the good work. Dont undervalue yourself as well. Are you posting on reddit? You need to get some reach :)

    • @XistGG
      @XistGG  ปีที่แล้ว +1

      I'm hopeful to share insights with others, as so many have also shared with me.

  • @Lainemajstah
    @Lainemajstah ปีที่แล้ว

    Thank you for this, keep the videos coming, helps out a bunch trying to learn Unreal Engine and GAS. One question, I can't find the Lyra stuff such as attributesets and or the AbilitySystemComponent in the example code. How did you import those? And are the attributesets and the healtcomponent everything that is needed or do one need to do any preperations as in specific tags or the like, why I'm asking is I was thinking of reverse-engineer lyras components and make my own for learning and to be able to add stuff later if needed.?

    • @XistGG
      @XistGG  ปีที่แล้ว

      Ignore the stuff with an "XCL" prefix. That is my own code for my project that isn't really related to the example.
      You can probably replace those references with "Lyra" prefix and I bet it will work.
      You can absolutely make your own components and attribute sets, you don't need to use Lyra's stuff. Just copy their classes, rename them to your own, and change how you like.

  • @shannenmr
    @shannenmr ปีที่แล้ว

    Keep it up

  • @Vaspin
    @Vaspin ปีที่แล้ว

    I want to create a Shielding ability to intercept damage before health hits. Could that all be done in the ability? Or would i need a ShieldSet component and have to customize the Damage Calc class?
    Video was helpful! thanks!

    • @XistGG
      @XistGG  ปีที่แล้ว +1

      I think you'd probably want to add that to the HealthSet as a new attribute, and modify the damage calculation as needed. Maybe some types of damage penetrate the shield and some don't, etc.

  • @Conversion108
    @Conversion108 3 หลายเดือนก่อน

    Is this replicated between networks?

  • @Buran21
    @Buran21 ปีที่แล้ว

    ❤😊

  • @foriwill7384
    @foriwill7384 ปีที่แล้ว

    how do you block damage?

    • @XistGG
      @XistGG  ปีที่แล้ว +1

      There are a few ways to do it, either with tags that prevent the effect from being applied in the first place, and/or by modifying the damage calculation code (c++).

  • @mohammadkojak3360
    @mohammadkojak3360 ปีที่แล้ว

    #include "XCLAbilitySystemComponent.h"/"XCLAbilitySettings.h"/"Log/XCLLog.h" in "XCLActorWithAbilities.h"
    are doesn`t exist !!?

    • @XistGG
      @XistGG  ปีที่แล้ว +1

      Correct. As stated on the Github, that code will not compile. Those are custom libs in my XCL library that I am not making available in this example. It's example code only, it's not plug-and-play.

    • @mohammadkojak3360
      @mohammadkojak3360 ปีที่แล้ว

      @@XistGG oh man.. thank you for wasting my Time !

    • @XistGG
      @XistGG  ปีที่แล้ว +2

      I said as much in the video, on the Dev log AND on the Github repository lol. How did you miss it !? :)