//TatooineA //Handles the spawning of tusken raiders at the end of the level. state Base { Conditions { if PartyUnderCover == 0 and if ForceComplete "pod1" == 0 and if EitherPlayerInTriggerArea "End_Section" == 1 goto Spawn } Actions { ResetTimer } } state Spawn { Conditions { } Actions { CreateCreatures "type=TuskenRaider" "script=Tusken_Set1" "locator=Tusken_Spawn1" AlertCreatures "character=player" Idle "0.5" CreateCreatures "type=TuskenRaider" "script=Tusken_Set1" "locator=Tusken_Spawn1" AlertCreatures "character=player" Idle "0.5" CreateCreatures "type=TuskenRaider" "script=Tusken_Set1" "locator=Tusken_Spawn1" AlertCreatures "character=player" Idle "0.5" SetState "WaitForSetToBeDestroyed" } } state WaitForSetToBeDestroyed { Conditions { if Timer > 1 and if IsSetAlive "1" == 0 goto Base } Actions { ResetTimer } }