GetTrainPosition

From Multi Theft Auto: Wiki
Revision as of 01:25, 13 September 2015 by Qaisjp (talk | contribs) (Created page with "__NOTOC__ {{Client function}} {{New feature/item|3.0160|1.6|7485| Gets the position the train is currently on the track }} ==Syntax== <syntaxhighlight lang="lua">float getTrainPosition ( vehi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Gets the position the train is currently on the track

Syntax

float getTrainPosition ( vehicle train )

OOP Syntax Help! I don't understand this!

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


Required Arguments

  • train: the train to get the position of

Returns

Returns a float that represents how along the track it is, false if there is problem with train element.

Example

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

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


See Also