//Script controlls spawning creatures in Area B State Base { Conditions { } Actions { //SetState SpawnGroupB SetState Update } } State Update { Conditions { if NumInSetAlive "2" < 1 and if EitherPlayerInTriggerArea "Spawn_B" == 1 goto SpawnWait } Actions { } } State SpawnWait { Conditions { } Actions { Idle "mintime=0" "maxtime=10" SetState SpawnGroupB } } State SpawnGroupB { Conditions { } Actions { CreateCreatures "locator_group=spawnb" "type=StormTrooper" "type=ImperialOfficer" "type=BeachTrooper" "type=GamorreanGuard" "type=SkiffGuard" "type=ImperialGuard" "script=Attack" "addtoset=2" "yoffset=6" "dont_set_on_surface" "zipdown" ;so not all the creatures are created on the same frame, spread it out slightly Idle "0.1" SetState SpawnTmpWait } } State SpawnTmpWait { Conditions { if NumInSetAlive "2" < 4 goto SpawnGroupB if AlwaysTrue == 1 goto Update } Actions { } }