|
Hey, I'm wondering if it's possible to add a script to an object and when that object spawn's another thing I've assigned to the script will be destroyed. If so, could someone link me an answered question or example if u know of any cuz I've been searching around and couldn't find anything.
(comments are locked)
|
Untested. thx for the answer... it was a few errors in that script but it doesn't mather cuz I got it to work on another way.
May 14 '11 at 09:36 AM
simpleone
(comments are locked)
|

It is possible, but you can do it in hundred of different ways. We could only guess how you want this implemented, but we are likely to guess wrong. So can you be more specific?
Erm, I got a gameobject that is going to be spawned after 50 seconds and when it spawns I want a few other gameobjects in the game to be destroyed... so I was thinking if it was possible to add a script to this gameobject that is going to be spawned and in the inspector I wanna assign this gameobjects that is going to be destroyed when it spawns...