draw_train_controls

Синтаксис

stock draw_train_controls(id, TrainControlFlags:speed = TrainControls_None, bool:reliable = true)

Употреба

id
Client index or 0 for all clients
speed
Train speed:
  TrainControls_None
  TrainControls_Neutral
  TrainControls_Slow
  TrainControls_Medium
  TrainControls_Maximum
  TrainControls_Reverse
reliable
If true, the message will be sent via the reliable
channel, otherwise it will use the unreliable one

Описание

Displays the speed bar used for controlling a train.

Забележка

This stock isn't available in Day of Defeat.

Връщаща стойност

0 if "id" is non-zero and the client isn't connected,
1 otherwise