draw_train_controls

Syntax

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

Usage

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

Description

Displays the speed bar used for controlling a train.

Note

This stock isn't available in Day of Defeat.

Return

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