IsTrainDerailed

From Multi Theft Auto: Wiki
Revision as of 17:40, 22 February 2009 by Cazomino05 (talk | contribs) (New page: __NOTOC__ Category:Needs_Example {{Server client function}} This function will check if a train or tram is derailed. ==Syntax== <syntaxhighlight lang="lua"> bool isTrainDerailed ( vehicle vehicleT...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function will check if a train or tram is derailed.

Syntax

bool isTrainDerailed ( vehicle vehicleToCheck )              

Required Arguments

  • vehicleToCheck: The vehicle that you wish to check is derailed.

Returns

Returns true if the train is derailed, false if the train is still on the rails

See Also