SetTrainSpeed

From Multi Theft Auto: Wiki
Revision as of 21:17, 22 February 2009 by Arc (talk | contribs) (New page: __NOTOC__ {{Server client function}} Sets the on-track speed of a train. ==Syntax== <syntaxhighlight lang="lua">bool setTrainSpeed ( vehicle train, float speed )</syntaxhighlight> ===Required Arguments=== *'''trai...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Sets the on-track speed of a train.

Syntax

bool setTrainSpeed ( vehicle train, float speed )

Required Arguments

  • train: the train whose speed to change.
  • speed: the new on-track speed of the train. A positive value will make it go clockwise, a negative value counter clockwise.

Returns

Returns true if successful, false otherwise.

See Also