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 0.5" "firerange 1.0" } }