- Home /
Script does not work on version 4.6.0.
Hi! In unity 3d 3.5.7 I used this script. Now since I use the version 4.6.0 this script does not work as it should.
var other : Motion; // assign the game object having the animation BOX OR BALL
function OnTriggerEnter (collision : Collider)
{
if ((collision.gameObject.tag == "alien attack") )//here put the the tag for the game object box where you want to hit the ball
{
other.Play("attack");
}
}
To insert the animation of the character I changed the variable to Animation in Motion.
When I enter the cube triggers, the character should attacarmi but this does not happen. Against which the probblema in this script?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613184228im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Character Animation Assistance 1 Answer
Character Aiming 1 Answer
Animation lag 2D 0 Answers
Need help addind a attack and jump script 0 Answers
Scoring System 2 Answers