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