//Script for empty ai_atat state Base { Conditions { if EitherPlayerInTriggerArea "Platform" == 1 goto RotateToPlayerPlayer } Actions { NoLosCheck SetViewDistance "50" SetMaxViewHeight "50" SetMinViewHeight "-50" CanSeeBehind PrefersPlayers CanShootObstructions } } state RotateToPlayerPlayer { Conditions { if EitherPlayerInTriggerArea "Platform" == 0 goto Base if YawToOpponent < 10 and if YawToOpponent > -10 goto AttackPlayer } Actions { FaceOpponent EngageOpponent "static" "firerange=50" } } state AttackPlayer { Conditions { if EitherPlayerInTriggerArea "Platform" == 0 goto Base if YawToOpponent > 10 goto RotateToPlayerPlayer if YawToOpponent < -10 goto RotateToPlayerPlayer } Actions { PressActionButton Idle "mintime=1" "maxtime=2" SetState "AttackPlayer" } }