GetTrainTrack: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ {{Client function}} {{Needs Example}} {{New feature/item|3.0151|1.6|7485| Gets the track of a train }} ==Syntax== <syntaxhighlight lang="lua">int getTrainTrack ( vehicle train )</co...")
 
mNo edit summary
Line 10: Line 10:
{{OOP||[[vehicle]]:getTrack|track|getTrainTrack}}
{{OOP||[[vehicle]]:getTrack|track|getTrainTrack}}
===Required Arguments===
===Required Arguments===
*'''train:''' the train of which to get the driving direction.
*'''train:''' the train of which to get the track.


===Returns===
===Returns===

Revision as of 21:25, 11 September 2015

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

Before submitting check out Editing Guidelines Script Examples.

Gets the track of a train

Syntax

int getTrainTrack ( vehicle train )

OOP Syntax Help! I don't understand this!

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


Required Arguments

  • train: the train of which to get the track.

Returns

Returns an intenger which means the track of the train, false if there is problem with train element.

Example

--TODO

See Also