SetTrainTrack: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{Shared function}}
{{Shared function}}
{{Delete|This function doesn't exist anymore.}}
{{New feature/item|3.0160|1.6|7485|
{{New feature/item|3.0160|1.6|7485|
Sets the track of a train
Sets the track of a train

Revision as of 02:10, 18 March 2019

Edit-delete.png This page is marked for deletion.

Reason: This function doesn't exist anymore.
Actions: Delete (Administrators) - Discuss - What links here - Category

Sets the track of a train

Syntax

bool setTrainTrack ( vehicle train, int track )

OOP Syntax Help! I don't understand this!

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


Required Arguments

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

Returns

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

Example

This server-side script allows the player to change the track of their train.

Click to expand [+]
Procedural
Click to expand [+]
Object Oriented

See Also