GetTrainSpeed

From Multi Theft Auto: Wiki
Revision as of 21:10, 22 February 2009 by Arc (talk | contribs) (New page: __NOTOC__ {{Server client function}} Gets the speed at which a train is traveling on the rails. ==Syntax== <syntaxhighlight lang="lua">float getTrainSpeed ( vehicle train )</syntaxhighlight> ===Required Arguments=...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Gets the speed at which a train is traveling on the rails.

Syntax

float getTrainSpeed ( vehicle train )

Required Arguments

  • train: the train of which to retrieve the speed.

Returns

Returns the train's speed if successful, false otherwise.

See Also