GetTrainSpeed: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(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=...)
 
m (Needs example)
Line 12: Line 12:
===Returns===
===Returns===
Returns the train's speed if successful, ''false'' otherwise.
Returns the train's speed if successful, ''false'' otherwise.
==Example==
<syntaxhighlight lang="lua">
--TODO
</syntaxhighlight>


==See Also==
==See Also==
{{Vehicle functions}}
{{Vehicle functions}}
[[Category:Needs Example]]

Revision as of 08:06, 19 June 2009

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.

Example

--TODO

See Also