Hi,
I’m new in Unity and i want to make a reaction Game.
First i made a Racingame in that you can drive around and shoot a don’t moving Enemy.
I dosen’t knewn how i can destroy the bullets if they are too much away or after a Time.
My solution was using A Main World Empty and if the bullets are to fast away they destroy.
I think its a bad solution and i can’t use it longer.
How can i make an objekt destroing after a Time?
In Java or C sharp is equal.
Sorry for bad English Cery
Hi, welcome to the forum!
You can destroy an object after a time limit quite easily. The Destroy function has an optional time delay parameter so if you write:-
Destroy(bulletObject, 5.0);
…it will destroy the bullet in five seconds.
Thank you!!!
It works!
Magic :shock: