- Home /
Question by
Wiebren-de-Haan · Nov 20, 2012 at 10:48 AM ·
collisiondestroybulletcollide
How to destroy bullet on collision!
I want to make a javascript for my bullets to destroy on anything. In some video's they say to destroy it after time, but i want it to destroy after collision! Have someone a script!
please place it here or email it to ***
Comment
Best Answer
Answer by BiG · Nov 20, 2012 at 10:54 AM
function OnCollisionEnter(collision : Collision) {
Destroy(gameObject);
}
That's very basic stuff. I recommend to read some documentation before posting questions like this (-1).
Answer by Wiebren-de-Haan · Nov 28, 2012 at 12:33 AM
Sorry, im really new and dont know javascript very well!
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Destroy on collision 3 Answers
Destroy Turret with machine Gun 0 Answers
Collision with terrain 0 Answers
Destroy Bullet On Collision? 1 Answer