SetTrainPosition

From Multi Theft Auto: Wiki
Revision as of 19:47, 29 December 2015 by Qaisjp (talk | contribs) (shared)
Jump to navigation Jump to search

Sets the position the train is currently on the track

Syntax

bool setTrainPosition ( vehicle train, float position )

OOP Syntax Help! I don't understand this!

Method: vehicle:setTrainPosition(...)
Variable: .trainPosition
Counterpart: getTrainPosition


Required Arguments

  • train: the train of which to set the track
  • position: the position along the track

Returns

Returns true if the train position was set, false otherwise.

Example

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

Before submitting check out Editing Guidelines Script Examples.
-- TODO


See Also