SetTrainPosition

From Multi Theft Auto: Wiki
Revision as of 01:23, 13 September 2015 by Qaisjp (talk | contribs) (add settrainpos)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Sets the position the train is currently on the track

Syntax

<syntaxhighlight lang="lua">bool setTrainPosition ( vehicle train, float position )code>

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