if value #y_pos = #enemy_y then goto same_y_ #cur_head:

If the enemy's y-coordinate is equal to your y-coordinate, then the two of you must be on the same axis. i.e. there is a potential direct line-of-fire between you and the enemy. When Torque detects that the enemy has the same y-coordinate as itself, then he jumps to a routine which depends on Torque's current heading.

If the enemy is to the side of Torque, then this routine determines whether it would be safer to:

Alternatively, if the enemy is either in front of or behind Torque, then he will: