draw_train_controls

Displays the speed bar used for controlling a train.

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:
reliable If true, the message will be sent via the reliable

Return

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

Notes

This stock isn't available in Day of Defeat.

Defined in msgstocks.inc at line 221 . This documentation was automatically generated from source.