select time in animation to trigger an if statement
trying to make this part of my script work but having a brain fart with this line of code
it is suppose to get a select spot in a animation clip and when it passes that time its suppose to trigger but i cannot for the life of me remember the Definitions to put here.
if(GetComponent().IsPlaying(attack.name).time>GetComponent().Length * impactTime)
i have had a look around on the forums and couldn't really find a working answer so i thought i better ask...
Your answer
![](https://koobas.hobune.stream/wayback/20220612142049im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
can anyone help me out what is wrong with this code? 1 Answer
How do I run an animation then destroy a game object? 0 Answers
How do I run an animation then destroy a game object? 1 Answer
Infinite Time inbetween if statements? 2 Answers
Play animation when WASD is pressed, stop animation when none of them are pressed (Help!!) 0 Answers