SetTrainDerailed

From Multi Theft Auto: Wiki
Revision as of 17:03, 11 December 2009 by Sebassje (talk | contribs)
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: whether the train is derailed.

Returns

Returns true if the state was successfully set

Example

Click to collapse [-]
Example
-- TODO

See Also