SetTrainDerailed: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(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...)
 
No edit summary
Line 11: Line 11:
===Required Arguments===  
===Required Arguments===  
*'''vehicleToDerail:''' The vehicle that you wish to derail.
*'''vehicleToDerail:''' The vehicle that you wish to derail.
*'''derailed:''' weather the train is derailed.
*'''derailed:''' whether the train is derailed.


===Returns===
===Returns===

Revision as of 17:38, 22 February 2009

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

See Also