state Base { Conditions { } Actions { AddToSet "1" ShadowTerrain IgnoreWallSplines SetMaxViewHeight "999" SetMinViewHeight "-999.0" SetViewDistance "50" SetRunSpeed "default" SetRunSpeed "multiply=-1" UseTimeBasedUpdate "FALSE" SetState "FollowSpline" } } /////////////////////Spline following////////////////// state FollowSpline { Conditions { if FinishedSpline == 1 goto Kill if OffScreenTimer > 7 goto Kill if NumInSetAlive "2" < 4 and if EitherPlayerInTriggerArea "End" == 1 and if InTriggerArea "End" == 1 goto ChangeToAttacking } Actions { Idle "3" ShootAtOpponent "fireinterval=0.5" "firerange=50" "frontArcOnly" } } ////////////////////Attacking player/////////////////// state ChangeToAttacking { Conditions { } Actions { SetSpline "clear" AddToSet "2" SetPath "path=LevelPath" SetRunSpeed "default" SetState "Attacking" } } state FlyToDie { Conditions { if OffScreenTimer > 7 goto Kill } Actions { GoToLocator "name" "Kill_Me" "2" Kill } } state Attacking { ReferenceScript { Script=tiefighter Source=Global ReturnState=Attacking Conditions { if GotOpponent == 1 and if EitherPlayerInTriggerArea "End" == 1 } } Conditions { if GotOpponent == 0 and if OffScreenTimer > 7 goto Kill } Actions { SetState "FlyToDie" } } state ////////////////////Kill/////////////////////////////// state Kill { Conditions { } Actions { Kill } }