- Home /
Collsions problem
See i have a project im working on but cant get it to work. Cant make the bullet destroy the zombie for some reason. The script: #pragma strict
var zombiedeathSound : AudioClip;
function OnTriggerEnter (other : Collider) { if(other.tag == "Bullet") { audio.PlayOneShot (zombiedeathSound); yield WaitForSeconds (0.4); Destroy(gameObject);
}
} . Here i have some pictures of my project so you can understand all of it:
dwm 2013-12-07 22-41-31-85.jpg
(251.2 kB)
unity 2013-12-07 22-42-01-06.jpg
(44.6 kB)
Comment
Your answer
Follow this Question
Related Questions
Enemy death help 1 Answer
How to make the enemy move back to its waypoint after it's target killed? 2 Answers
Checking name from hit from Raycast in array 2 Answers
Problem with the movement of AI 1 Answer