Ok, now, i'm still playing with the player use ai sexp (quite interesting sexp

)
So what i tried first was :
When
-has time elapsed : 5
-player use ai ship
-ai add goal
dock
alpha 1
Name of ship to dock with
docking point name (do not remember)
Fred did not accept to show me the dock order for the ai so i did it with notepad.
fred does complain when i load up the mission, but not freespace2 it self and it worked perfectly has intended (the ai control the players ship and dock with the ship). (Is it a big deal or not? )
Anyway my idea was :
When
and
-distance < x meters
alpha1
name of ship to dock with
-key pressed
"D"
-Player use ai
-add ai goal
-dock
alpha1
name of ship to dock with
etc...
My problem is that when i use "when" distance sexp looks grey...
What is wrong with my sequence?