Hi!
Thanks again for this great boost Martin! I've been trying to add combat to this mod. It's not much but I'm trying to create a function that "kills" a unit when he's hit by an object with the tag "missile" that comes out of the Turret. logically I tried to Destroy the game object that got hit. Unity doesn't like that. I get an error message. (Null Reference) For now I have just "moved" the tanks hit. I get some type of weird era too. What I want to do is remove the game object once he takes enough hits. Only problem is for now each unit is using the same script.
So the question: How can I remove the hit object without causing a Null Error.
Here's the code:

Reply With Quote
