Sets speed for the specified array index and link. Internally it is the corresponding time, that is stored.
See also MaxSpeed.
Syntax: SetSpeed(index,link: integer; speed: TCost)