#pls help
1 messages · Page 1 of 1 (latest)
GetButtonDown and GetButtonUp
if (Input.GetButton("Fire2"))
{
animator.SetBool("ADS", true);
}
if (Input.GetButtonUp("Fire2"))
{
animator.SetBool("ADS", false);
}
when I make it like this
it bounces back and fourth
it's the same with getbuttondown
@main sluice \
if (Input.GetButton("Fire2"))
{
animator.SetBool("ADS", true);
}
to
if (Input.GetButtonDown("Fire2"))
{
animator.SetBool("ADS", true);
}
Then your issue is most likely with your animator
Once you switch to ButtonDown and ButtonUp
And the other transition?
And the full script? Note #854851968446365696 for how to post code
i think something else override the parameter ADS
reading through the code all ADS para mention only 2 time with mouse2 up and down (3 if you count on enable)
yep
and it working as expected so problem is some where else
its seperate
not the input itself
no
did you use Animation event?
Uncheck that, and go into the clip itself and make sure it's not set to loop
nothing changed
add condition where ads animation have to has ADS false in order to move from ads to idle?
so a bool?
what do you mean
I make a new bool in the script?
delete the reload one