GetTrainDirection

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

Example

--TODO

See Also