//Vader C state Base { Conditions { } Actions { CanAttack CanSeeBehind SetState "Update" } } state Update { Conditions { if Message "FinalFight" == 1 goto Fight } Actions { FollowPlayer "0.75" } } //===================== //FightIntro is called from the level script. state FightIntro { Conditions { } Actions { SetHitPoints "10" SnapToLocator "name=Start" "indexed" Idle } } state Fight { Conditions { } Actions { AttackOpponent "range 0.5" } }