I was looking at the script code and added the following for spawning aliens:
and add this to the test.obj:
18
1
Spawn (Alien)
createalien(alien)|remove(me)
19
1
Spawn (Hugger)
createalien(hugger)|remove(me)
I would imagine a couple of 'invisible' tiles would be added to the objects as triggers (just knocked up a couple of temp ones myself).
Couple of questions come from this?
* best way to determine x,y location to 'create' alien? specific spawn location, random ??
* alien ID - should we track this as part of the SpawnAlien process? ie. global counter
* spawning a number of aliens at once?
You have done a great job with this Mark!
Case "createalien" Select si\param Case "alien":SpawnAlien(x,y,-1,STANDARD_ALIEN) Case "hugger":SpawnAlien(x,y,-1,FACE_HUGGER_ALIEN) End Select
and add this to the test.obj:
18
1
Spawn (Alien)
createalien(alien)|remove(me)
19
1
Spawn (Hugger)
createalien(hugger)|remove(me)
I would imagine a couple of 'invisible' tiles would be added to the objects as triggers (just knocked up a couple of temp ones myself).
Couple of questions come from this?
* best way to determine x,y location to 'create' alien? specific spawn location, random ??
* alien ID - should we track this as part of the SpawnAlien process? ie. global counter
* spawning a number of aliens at once?
You have done a great job with this Mark!