edited November 2014 in ORK Support
is it possible to do to make my model look like dying when hp is low?
Post edited by gamingislove on
  • Yes. You can override your idle animation using a Status Effect. In this case, the status effect would be "Wounded" or "Dying" or whatever you would like to name it.
  • ok thanks for the help ! =)
  • where do i set that in animation settings >> own animations ?
  • Don't forget that you can automatically apply that status value (and remove it) by checking for certain status requirements, e.g. in your case something like HP less than 20 %.
    This is done in Auto Apply Settings and Auto Remove Settings.

    Also, you only need to override the animations that you want to change, e.g. the idle animation - you don't need to add all other animations as well. ORK will search for first animation to play looking in this order: status effects > equipment > combatant.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • edited October 2014
    i forgot to mention that im using mecanim animation do i need to duplicate my animator controller?
    Post edited by Alex1234 on
  • nah just use the animation as a trigger an call it int he event
    new website can be found here http://www.fore-loregames.com

    Follow the game Development on Twitter https://twitter.com/Fore_Lore_Games

    or check out the face book page here https://www.facebook.com/ForeLoreGames
  • ok i will try i might have a problem so bear with me ;)
  • UPDATE : i can't seem to follow your advice, can you ellaborate it a bit ? :)
  • Just add the animations to your animator controller like the others. Create a new Animations setting for the animations that should be overridden by the status effect which triggers those animations (e.g. through a Trigger parameter or simply using Play).
    Keep in mind that ORK can only override the movement animations (idle, run, etc.) if you let ORK handle those animations (using auto move animation in the combatant's settings).
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • edited October 2014
    i followed your instructions,

    i add the animation ( dying ) in animator..
    i set a trigger ( Dying_t )
    then in my IDLE state.. i make a transition from IDLE to DYING_IDLE
    i set the transition from exit to Dying_t

    then i copy my previous mecanim settings and replaced
    the idle with dying & use a parameter ( dying_t )

    still not working..

    in my case i only want to replace the idle animation with dying animation when the hp is low

    Post edited by Alex1234 on
  • dont go form idle state . go from any state to your dying state and then to idle and make sure the trigger is selected on the connection between dying an idle
    new website can be found here http://www.fore-loregames.com

    Follow the game Development on Twitter https://twitter.com/Fore_Lore_Games

    or check out the face book page here https://www.facebook.com/ForeLoreGames
  • Also, Dying_t is not the same as dying_t - case sensitivity :)
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • edited October 2014
    @gil yes i mistyped in the comment box only ;)


    i followed your instructions but it plays the dying animation even when my hp is full
    i set the trigger( Dying_t ) between dying & idle
    Post edited by Alex1234 on
  • id say delete the trigger you got in your param's list and then re add it you might have it set to a bool an not trigger
    new website can be found here http://www.fore-loregames.com

    Follow the game Development on Twitter https://twitter.com/Fore_Lore_Games

    or check out the face book page here https://www.facebook.com/ForeLoreGames
Sign In or Register to comment.