Announcement

Collapse
No announcement yet.

Nothing Happens to The Enemy (Punch Collision)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Nothing Happens to The Enemy (Punch Collision)

    Hi

    i spent hours trying to figure out how to get it to work as many tutorials show but failed



    i added a collision sphere on the enemy and called it EnemyBody

    And did this to the Enemy BluePrint , But Nothing Happens , The String Text Doesn't Show



    Is My Blueprint Right? Is it connected with the sphere collisions on my player arms or i have to do something else ?

    #2
    Did you enable "Generate overlap components"? Or try with "other actor" or "other component"? I never made a boxing game to be honest, but I would check that first i think.
    My Patreon page (UE4 goodies!)

    Comment


      #3
      Thanks, i got it to work by cast to.

      But now the problem is when the enemy dies, it keeps chasing me (Ai move to) when it's not supposed to move

      Comment


        #4
        Try using the Destroy Actor node when you wish for the enemy to die.

        Comment


          #5
          or just remove its controller if you want to keep the body there.
          Checkout Project "TwinBlaster" my current game in progress.
          [FREE] - 2D ROPE! Find out more here!
          Forgive my username... It's an old game name and wrote it down as a habit.

          Comment


            #6
            Originally posted by Predatoria View Post
            Try using the Destroy Actor node when you wish for the enemy to die.
            tried that and it made the enemy disappear and i dont want it to disappear because theres a death animation and visible dead body

            solved by (Disable movement)

            My last Problem is the death animation .. if i punch a dead body it does wake up and do the death animation and die again

            and if i apply (do once) it solves the problem for one enemy but the rest enemies wouldnt die or play the anim
            Last edited by engidev; 02-10-2017, 07:48 PM.

            Comment


              #7
              If the body is still playing animations from punches then in your character blueprint you need to create a variable for the death state. I have one in my blueprint called IsDead. Then, when you take damage, only allow further action with a branch node if you are not dead.

              Comment


                #8
                Hi, I have the same problem. would you mind show your enemy blueprint? thank you!

                Comment

                Working...
                X