//Script controlls spawning creatures in Area B State Base { Conditions { } Actions { //SetState SpawnGroupB SetState "Update" } } State Update { Conditions { if PSP == 1 and if NumInSetAlive "2" < 4 and if EitherPlayerInTriggerArea "Spawn_B" == 1 goto SpawnWait if PSP == 0 and if NumInSetAlive "2" < 6 and if EitherPlayerInTriggerArea "Spawn_B" == 1 goto SpawnWait } Actions { } } State SpawnWait { Conditions { } Actions { Idle "mintime=0" "maxtime=10" SetState SpawnGroupB } } State SpawnGroupB { Conditions { if PSP == 1 and if NumInSetAlive "2" < 6 goto SpawnGroupB if PSP == 0 and if NumInSetAlive "2" < 8 goto SpawnGroupB if AlwaysTrue == 1 goto Update } Actions { CreateCreatures "locator_group=spawnb" "type=BespinGuard" "type=StormTrooper" "type=ImperialOfficer" "type=BeachTrooper" "type=ImperialShuttlePilot" "type=cloudcitycitizen" "script=Attack" "addtoset=2" "yoffset=6" "dont_set_on_surface" "zipdown" } }