//Sets // 1 : Baddie Ties state Base { Conditions { } Actions { AddLocatorGroup "name=spawnA" AddLocatorGroup "name=spawnB" AddLocatorGroup "name=spawnC" SetState "Update" } } state Update { Conditions { //A area if Timer > 1 and if EitherPlayerInTriggerArea "Spawn_a" == 1 and if NumInSetAlive "1" < 4 goto Spawn_a //B area if Timer > 1 and if EitherPlayerInTriggerArea "Spawn_b" == 1 and if NumInSetAlive "1" < 4 goto Spawn_b //C area if Timer > 1 and if EitherPlayerInTriggerArea "Spawn_c" == 1 and if NumInSetAlive "1" < 4 goto Spawn_c } Actions { ResetTimer "mintime=0" "maxtime=2" } } state Spawn_a { Conditions { } Actions { CreateCreatures "type=TieInterceptor" "type=tiefighter" "groupsize=2" "xspacing=3" "zspacing=3" "nacross=2" "script=attack_tie" "locator_group=spawnA" "addtoset=1" "dont_set_on_surface" SetState "Update" } } state Spawn_b { Conditions { } Actions { CreateCreatures "type=TieInterceptor" "type=tiefighter" "groupsize=2" "xspacing=3" "zspacing=3" "nacross=2" "script=attack_tie" "locator_group=spawnB" "addtoset=1" "dont_set_on_surface" SetState "Update" } } state Spawn_c { Conditions { } Actions { CreateCreatures "type=TieInterceptor" "type=tiefighter" "groupsize=2" "xspacing=3" "zspacing=3" "nacross=2" "script=attack_tie" "locator_group=spawnC" "addtoset=1" "dont_set_on_surface" SetState "Update" } }