//Script controlls spawning creatures in Area C State Base { Conditions { } Actions { SetState SpawnGroupC } } State Update { Conditions { if NumInSetAlive "3" < 5 and if EitherPlayerInTriggerArea "Spawn_Area_C" == 1 goto SpawnWait } Actions { } } State SpawnWait { Conditions { if EitherPlayerInTriggerArea "Spawn_Area_C" == 0 goto SpawnGroupC } Actions { Idle "mintime=4" "maxtime=10" SetState SpawnGroupC } } State SpawnGroupC { Conditions { if NumInSetAlive "3" < 10 and if EitherPlayerInTriggerArea "Spawn_Area_C" == 1 goto SpawnGroupC if AlwaysTrue == 1 goto Update } Actions { CreateCreatures "locator_group=spawnc" "type=StormTrooper" "type=ImperialOfficer" "type=BeachTrooper" "type=ImperialShuttlePilot" "script=Attack" "nearest_player" "addtoset=3" "off_screen" } }