Arma 3 activate trigger script

broken image

This is the hierarchy, my script is attached to 'Jogador'. On my code, when i press 2 (change to weapon number 2) i want to do the transition. I'll leave here a print of the animator controller, the hierarchy and the script, if u need more details, just need to say.Īnimator controller of the weapon number 1Īll transitions to 'Sair' (leave animation) have a trigger (AK47_sair) and the transition to 'Extit' state have a trigger ('AK47_SairControlador') I need to know when my 'leave' animation ends to disable the gameobject, enable the other one and play the 'enter' animation. I have 3 different weapons, 1 animator controller for each one and every weapon has a 'enter' and 'leave' animation.

broken image
broken image

My project is a military fps and i'm having some problems with animations.