hello
found this wave spawn script by Ched80
http://forum.thegamecreators.com/?m=forum_view&t=186218&b=23
its an awesome script and guide for spawning waves of the enemy
ive got it spawning waves of the enemy
but the next spawn wave starts before i can
kill off all the enemy that were previously spawned
im sure ive done something wrong
but cant figure it out
trigger
;Artificial Intelligence Script
;Script Created by Ched80
;Header
desc = swarm
;Triggers
:state=0:dimvar=EnemiesInWave,setvar=EnemiesInWave 0,state=1
:state=1,plrwithinzone=1:settargetname=EnemyWave01,activatetarget=1,etimerstart,state=2
:state=2,etimergreater=4000,varless=EnemiesInWave 1:settargetname=EnemyWave02,activatetarget=1,etimerstart,state=3
:state=3,etimergreater=10000,varless=EnemiesInWave 1:settargetname=EnemyWave03,activatetarget=1,etimerstart,state=4
:state=4,etimergreater=10000,varless=EnemiesInWave 1:settargetname=EnemyWave04,activatetarget=1,state5
;End of Script
appear 2 / floor logic script
;Artificial Intelligence Script
;Header
desc = Fade In Appear
;Triggers
:state=0:addvar=EnemiesInWave 1,state=1
:state=1,setalphafade=0,floorlogic
:state=1,alphafadeequal=0:incalphafade=100
:state=1,alphafadeequal=100:state=2,reloadweapon,runfpidefault=1
;End of Script
Destroy script
;Artificial Intelligence Script
;Header
desc = Fade Out Disappear
;Triggers
:state=0:subvar=EnemiesInWave 1,state=1
:state=1,alphafadeequal=100:decalphafade=0
:state=1,alphafadeequal=0:state=2,destroy
;End of Script
will be grateful for any help