Search Unity

  1. We've closed the job boards. If you're looking for work, or looking to hire check out Unity Connect. You can see more information here.
    Dismiss Notice
  2. We're running great holiday deals on subscriptions, swag and Asset Store packages! Take a peek at this blog for more information!
    Dismiss Notice
  3. Check out our Unite Austin 2017 YouTube playlist to catch up on what you missed. More videos coming soon.
    Dismiss Notice
  4. Unity 2017.2 is now released.
    Dismiss Notice
  5. The Unity Gear Store is here to help you look great at your next meetup, user group or conference. With all new Unity apparel, stickers and more!
    Dismiss Notice
  6. Introducing the Unity Essentials Packs! Find out more.
    Dismiss Notice
  7. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice
  8. Unity 2017.3 beta is now available for download.
    Dismiss Notice

On hit react

Discussion in 'Animation' started by Gurky, Mar 20, 2017.

  1. Gurky

    Gurky

    Joined:
    Jan 9, 2017
    Posts:
    2
    Hey guys im trying to make it so when player 1 hits a player 2 the bot reacts to the hit for instance player 1 punches and hits player 2 and player 2 animation hurt is played

    Note my Player 2 is a bot
     
  2. theANMATOR2b

    theANMATOR2b

    Joined:
    Jul 12, 2014
    Posts:
    6,717
    What have you done so far?

    Have you created a hit reaction animation?
     
  3. Gurky

    Gurky

    Joined:
    Jan 9, 2017
    Posts:
    2
    Yes I have both the punch animation for player 1 and the hit reaction to player 2
     
  4. theANMATOR2b

    theANMATOR2b

    Joined:
    Jul 12, 2014
    Posts:
    6,717
    How does the character react to being hit, to play the animation? Is it based on a trigger, or if statement, or bool or oncollision?
     
  5. Maxpeinas

    Maxpeinas

    Joined:
    Feb 19, 2014
    Posts:
    13