You should use 4 switches I think (one for each direction). You would need to put that big projecttile movement into the other parallel process and only one move command should be enough. Let it move in a direction if the appropriate switch is turned on. If it hits the enemy, turn off all 4 switches.