Hi so lets cut to the chase
.I’m making my grenade script , and i want it when i press button it Hides gun and Shows another grenade object.But as soon as that animation is over Gun reappear , and grenade object hides.
So here’s script
// all vars
var Hands : GameObject;
//Hide/show objects
var Weapons : GameObject;
var Hands : GameObject;
function Update () {
if(Input.GetKeyDown ("g"))
{
Hands.animation.Play ("Grenade");
Hands.animation["Grenade"].speed = 2;
//Something if animation (Grenade) !playing "Weapons" .enable= true;
//.....
}
}
//rest of code
...
any tips,help.
Thanx
-3DK