PARAM 0 visibility 4 PARAM 1 shootrange 3 PARAM 2 engagedist 1.5 state Base { Conditions { if DoorOpen "shutter2" == 1 goto Approach } Actions { CannotBeSeen KeepWeaponOut BreakFormation Idle } } state Approach { Conditions { if GotOpponent == 1 goto Fight } Actions { CannotBeSeen "FALSE" FollowPlayer } } state Fight { Conditions { if GotOpponent == 0 goto Approach } Actions { EngageOpponent "goalrange engagedist" "firerange shootrange" } }