GetTrainDirection: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(New page: __NOTOC__ {{Server client function}} Gets the direction in which a train is driving (clockwise or counterclockwise). ==Syntax== <syntaxhighlight lang="lua">bool getTrainDirection ( vehicle train )</syntaxhighlight> ...)
(No difference)

Revision as of 21:08, 22 February 2009

Gets the direction in which a train is driving (clockwise or counterclockwise).

Syntax

bool getTrainDirection ( vehicle train )

Required Arguments

  • train: the train of which to get the driving direction.

Returns

Returns true if the train is driving clockwise on the train track, false if it is going counterclockwise or a failure occured.

See Also