Hello, I'm trying to make a character that plays a certain animation when he dies rather than just fly back and fall. I already made the animation but I don't know how to implement it into the character. If you happen to know how to code it, could you please help me?
use a changestate in -2 to a custom state for only when hes on the ground and he dies.[statedef -2][state -2, changestate]type=changestatetrigger1=life<=0trigger1=statetype!=Avalue=90812ctrl=0and....;custom death animation[statedef 90812]type=Smovetype=Iphysics=Sanim=90812ctrl=0velset=0,0[state 90812, changestate]type=changestatetrigger1=animtime=0value=5150ctrl=0
I don't have time to try it myself, but shouldn't the trigger 1 of state -2 containtrigger1 = stateno !=90812 To prevent state 90812 from looping into itself ?With only trigger1=life<=0trigger1=statetype!=AAs far as i know, with this trigger1, during the execution of state 90812 the computer will check if there are the conditions to change into it and will restart it
sure. i wrote it up on the spot. i wasnt bothered with the small details. it was just an idea for him to work with.