//Script controlls spawning creatures in Area C State Base { Conditions { } Actions { //SetState SpawnGroupC SetState Update } } State Update { Conditions { if NumInSetAlive "3" < 3 and if EitherPlayerInTriggerArea "Spawn_C" == 1 goto SpawnWait } Actions { } } State SpawnWait { Conditions { } Actions { Idle "mintime=0" "maxtime=10" SetState SpawnGroupC } } State SpawnTmpWait { Conditions { if NumInSetAlive "3" < 7 goto SpawnGroupC if AlwaysTrue == 1 goto Update } Actions { } } State SpawnGroupC { Conditions { } Actions { CreateCreatures "locator_group=spawnc" "type=StormTrooper" "type=ImperialOfficer" "type=BeachTrooper" "type=GamorreanGuard" "type=SkiffGuard" "type=ImperialGuard" "script=Attack" "addtoset=3" "yoffset=6" "dont_set_on_surface" "zipdown" Idle "0.1" SetState SpawnTmpWait } }