FragMate CommunityLog in

FragMate - Software and Game Developer Community, including Resources, Forums, Marketplace & More.

Share

descriptionsimple spawn ai script

more_horiz
var enemy : Transform;
var delaybetweenspawn = 3;

function Start ()
{
StartCoroutine("Spawn");
}

function Spawn () {
yield WaitForSeconds (delaybetweenspawn);
var InstanceAi = Instantiate(enemy,transform.position,Quaternion.identity);
StartCoroutine("Start");
}
//made by wooden_sword789.

descriptionRe: simple spawn ai script

more_horiz
I am so happy because that was my 50'th Script!

descriptionRe: simple spawn ai script

more_horiz
also im sad because my mono develop crashed  Sad Sad Sad Sad Sad Sad Sad Sad Sad Sad 

descriptionRe: simple spawn ai script

more_horiz
Thanks alot for sharing!
Permissions in this forum:
You cannot reply to topics in this forum