SetTrainDirection: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(New page: __NOTOC__ {{Server client function}} Sets the direction in which a train or tram drives over the rails (clockwise or counterclockwise). ==Syntax== <syntaxhighlight lang="lua">bool setTrainDirection ( veh...)
 
No edit summary
Line 5: Line 5:


==Syntax==
==Syntax==
<syntaxhighlight lang="lua">bool setTrainDirection ( vehicle train, bool clockwise )
<syntaxhighlight lang="lua">bool setTrainDirection ( vehicle train, bool clockwise )</syntaxhighlight>


===Required Arguments===
===Required Arguments===

Revision as of 21:14, 22 February 2009

Sets the direction in which a train or tram drives over the rails (clockwise or counterclockwise).

Syntax

bool setTrainDirection ( vehicle train, bool clockwise )

Required Arguments

  • train: the train whose direction to change.
  • clockwise: if true, will make the train go clockwise. If false, makes it go counterclockwise.

Returns

Returns true if successful, false otherwise.

See Also