//BlockadeRunner_C state Base { Conditions { if FreePlay == 1 goto FreePlay_Start if AlwaysTrue == 1 goto Normal_Start } Actions { } } state FreePlay_Start { Conditions { if Message "PhaseC" == 1 goto StartPhase1 if Message "PhaseC" == 2 goto StartPhase2 if Message "PhaseC" == 3 goto StartPhase3 if AlwaysTrue == 1 goto Update } Actions { ;SetOpponent "opponent=AI_RebelScum" } } state Normal_Start { Conditions { if Message "PhaseC" == 1 goto StartPhase1 if Message "PhaseC" == 2 goto StartPhase2 if Message "PhaseC" == 3 goto StartPhase3 if AlwaysTrue == 1 goto Update } Actions { DontAimAt SetHitPoints "0" //So player cannot just shoot em. SetOpponent "opponent=RebelFriend" } } state StartPhase1 { Conditions { } Actions { GetLocatorFromGroup "name=BaddyPhase1" GoToLocator SetState "Update" } } state StartPhase2 { Conditions { } Actions { GetLocatorFromGroup "name=BaddyPhase2" GoToLocator SetState "Update" } } state StartPhase3 { Conditions { } Actions { GetLocatorFromGroup "name=BaddyPhase3" GoToLocator SetState "Update" } } state Update { Conditions { if GotLocator == 1 and if LocatorRange > 0.25 goto Update } Actions { GoToLocator EngageOpponent "static" "firerange 99" } }