//Vehicle Bonus State Base { Conditions { } Actions { AddLocatorGroup "name=spawn" SetState Update } } State Update { Conditions { if NumInSetAlive "1" < 3 goto Spawn } Actions { } } State Spawn { Conditions { } Actions { CreateCreatures "locator_group=spawn" "type=mini_tie_advanced" "type=Mini_Tie_fighter" "type=Mini_Tie_Interceptor" "type=Mini_Tie_bomber" "script=enemy" "nearest_player" "addtoset=1" "off_screen" SetState Update } }