//DeathStarEscape_C state Base { Conditions { } Actions { AddLocatorGroup "name=zipspawn1" SetState "Update" } } state Update { Conditions { if Timer > 2 and if ObstacleAtStart "blowup_door_1" == 1 and if BuildItComplete "fixit_1" == 0 and if NumInSetAlive "2" < 2 goto Spawn } Actions { ResetTimer } } state Spawn { Conditions { } Actions { CreateCreatures "locator_group=zipspawn1" "type=Stormtrooper" "type=TIEFighterPilot" "script=Sniper" "yoffset=4" "dont_set_on_surface" "zipdown" "fall_chance=0.2" "AddToSet=2" SetState "Update" } }