SetTrainSpeed

From Multi Theft Auto: Wiki
Revision as of 08:08, 19 June 2009 by Awwu (talk | contribs) (Needs example)
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.

Example

--TODO

See Also