- Home /
How to make other objects target an instantiated object?
Is there a way to make a player object respawn after death and not be called a clone, or is that just the way it's handled in the engine?
What I need to do is, once the player object is respawned/ instantiated, have enemies set the object to its target and also the camera to its target, and I don't know how to make that work right. Not even in Java, which is what I'm using. :(
Yeah, I'm pretty sure you're not using Java.
In any case, this is a good reason why you shouldn't use GameObject.Find("name") to identify objects- you should just be passing references around by script.
Answer by senad · Mar 01, 2012 at 09:12 AM
Maybe you do not want to destroy your object in the first place, only deactivate (and not render)? On respawn you re-activate it again and all the references should still work.
Your answer
Follow this Question
Related Questions
Missing Targets 1 Answer
How to make camera position relative to a specific target. 1 Answer
Lock On Reticle 1 Answer
Changing Free Look Camera Target At Runtime 2 Answers
Set up camera target automatically 0 Answers