x


How to Destroy a gameobject on collision

I need to know how to destroy a zombie gameobject on collision, but with a delay of say 5 seconds I'm new at scripting so I don't know how to do this. And when you write the script please varify what form its in, for example is it in javascript or CScript. Thanks

more ▼

asked Apr 28 '12 at 01:59 PM

jeremy gravatar image

jeremy
31 11 22 23

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

I would suggest taking a the time to watch a few tutorials, you will be able to help yourself alot more just by watching some basic ones. UnityStudent check out this link it will cover exactly what you want and probably other things you might find your self thinking of implementing.

Scripting Reference : OnCollisionEnter

more ▼

answered Apr 28 '12 at 03:52 PM

T27M gravatar image

T27M
770 2 7 15

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x5064
x3324
x2485
x2081
x764

asked: Apr 28 '12 at 01:59 PM

Seen: 1522 times

Last Updated: Apr 28 '12 at 03:52 PM