Wait,you didn't get me I want tomake a combo action(with 3animations).But i've got a code,called hitbutton. I meant,how can i do that,even when you press the button(so the the variable'll be hitbutton=2;),the event only happens at the end of the current animation?
find out how many animpos the animation has. let's say the last animpos is 5 (the last frame of the animation is five, this is just an example) Key down / hitbutton / Script Editor
if(animation_actor.animpos == 5) {//code;} //that will make the actor execute the action only when the position of the animation is the last (5 in this case)