Ok, I am on a roll. I have been researching this for the past couple hours and cant seem to get it exactly the way I want. As of right now I just want my enemies(floating cubes in the sky) to randomly shoot at the player. Seems simple enough, I just cant seem to figure it out.
As long as I am here I forsee the future already and I am going to want the “enemies” to re-spawn after they die. I will be researching this but thought if it was simple to add in and someone knew what I was talking about at least I asked ![]()
Thank you again! I dont know where I would be without you guys!
Enemy script right now…
var boom : ParticleEmitter;
var smoke : ParticleEmitter;
function OnCollisionEnter () {
Destroy(gameObject);
Instantiate(boom, transform.position, transform.rotation);
Instantiate(smoke, transform.position, transform.rotation);
}