SetTrainTrack

From Multi Theft Auto: Wiki
Revision as of 21:21, 11 September 2015 by Emiliano Castro (talk | contribs) (Created page with "__NOTOC__ {{Client function}} {{Needs Example}} {{New feature/item|3.0151|1.6|7485| Sets the track of a train }} ==Syntax== <syntaxhighlight lang="lua">bool setTrainTrack ( vehicle train, int...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Accessories-text-editor.png Script Example Missing Function SetTrainTrack needs a script example, help out by writing one.

Before submitting check out Editing Guidelines Script Examples.

Sets the track of a train

Syntax

bool setTrainTrack ( vehicle train, int track )

OOP Syntax Help! I don't understand this!

Method: vehicle:getTrack(...)
Variable: .track
Counterpart: setTrainTrack


Required Arguments

  • train: the train of which to get the driving direction.
  • track: the track where you want to set the train. It can be 1, 2 or 3.

Returns

Returns true if the track was set to the train, false otherwise.

Example

--TODO

See Also