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

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

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