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