Add ability for NPC to attack & deal damage to the Sandbox Character in the UE Game Animation Sample

Поділитися
Вставка
  • Опубліковано 25 жов 2024

КОМЕНТАРІ • 10

  • @youknow5319
    @youknow5319 2 місяці тому +2

    we want a video about adding Niagara Particle System please also if u can show in the video how to attach like a beam to hand or animation based on where the socket is please thank u sm

    • @treehousebandit
      @treehousebandit  2 місяці тому +1

      This is a good idea! It could take me a week or so to get to it. There are some great particle effects tutorials out there in the meantime. Find your hand socket in your skeleton, right click add a socket and position your socket to where you want the particle to spawn from and then within the animation they have a spawn particle effect notify already in the engine, you can right click on the timeline and add the particle notify and choose the particle you want to spawn. If the rotation is weird just go back to the skeleton and rotate the socket until it looks good in the animation.

    • @youknow5319
      @youknow5319 2 місяці тому +1

      @@treehousebandit Yes sir, Still we want a video from the greatest and thats you because in my opinion u explain in such a simple and easy way which we all arer greatful for it thank u sm, we will keep giving u feedbacks

    • @treehousebandit
      @treehousebandit  2 місяці тому +1

      @@youknow5319 yw, tysm for your kind words!

  • @sheanjay
    @sheanjay Місяць тому +1

    melee attak version pleaseee

  • @PepeLP94
    @PepeLP94 2 місяці тому

    Hi, love the tutorial, just got one issue - AI is not attacking me until I jump or until it is stuck over another AI. It's just chasing me around, any idea what may cause that? I've double check the code and everything seems to be exactly the same as Yours. It looks to me like some distance vector issue but I honestly don't know how to adjust it.

    • @treehousebandit
      @treehousebandit  2 місяці тому +1

      I think I may have recreated it, I'm not sure. On the event tick before the 'add movement input' node I have a branch that checks if the npc is attacking or not and if the NPC is attacking I don't have the NPC move towards the PC(the true branch goes to nothing). When I removed that branch and went right into the 'add movement input' node the NPC would only start attacking once i jumped. could that be the issue?

    • @PepeLP94
      @PepeLP94 2 місяці тому

      @@treehousebandit Dude! You're a life saver, I had that branch but my "IsAttacking?" bool was wrong, I've it doubled and was using the one without "?" at the end, rookie mistake I guess... Thanks!

    • @treehousebandit
      @treehousebandit  2 місяці тому

      @@PepeLP94 yw! i could explain a little more why I put it the way I did if you think it would help.