state Base { Conditions { if GotOpponent == 1 goto BlasterDefend ;if OpponentIsAThreat == 1 goto BlasterDefend if GotOpponent == 0 goto BlasterAlert ;if GotOpponent == 1 and ;if OpponentIsAThreat == 0 goto BlasterAlert } Actions { KeepWeaponOut "TRUE" FollowPath "WALK" } } state BlasterAlert { Conditions { if GotOpponent == 1 goto BlasterDefend ;if OpponentIsAThreat == 1 goto BlasterDefend } Actions { KeepWeaponOut "TRUE" FaceOpponent } } state BlasterDefend { Conditions { if GotOpponent == 0 goto BlasterAlert ;if OpponentIsAThreat == 0 goto BlasterAlert } Actions { EngageOpponent "goalrange 2.0" "firerange 3.5" ;AttackOpponent "goalrange 0.1" } }