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> ...)
 
m (Needs example)
Line 11: Line 11:
===Returns===
===Returns===
Returns ''true'' if the train is driving clockwise on the train track, ''false'' if it is going counterclockwise or a failure occured.
Returns ''true'' if the train is driving clockwise on the train track, ''false'' if it is going counterclockwise or a failure occured.
==Example==
<syntaxhighlight lang="lua">
--TODO
</syntaxhighlight>


==See Also==
==See Also==
{{Vehicle functions}}
{{Vehicle functions}}
[[Category:Needs Example]]

Revision as of 08:05, 19 June 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.

Example

--TODO

See Also