GetTrainDirection

From Multi Theft Auto: Wiki
Revision as of 21:08, 22 February 2009 by Arc (talk | contribs) (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> ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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