SetTrainDerailed

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

This function will set a train or tram as derailed.

Syntax

bool setTrainDerailed ( vehicle vehicleToDerail, bool derailed )              

Required Arguments

  • vehicleToDerail: The vehicle that you wish to derail.
  • derailed: weather the train is derailed.

Returns

Returns true if the state was successfully set

See Also

BETA: UPDATED FEATURE (BUILD: 1.5.8 r20693)