Difference between revisions of "SetTrainDerailed"

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
Line 12: Line 12:
*'''vehicleToDerail:''' The vehicle that you wish to derail.
*'''vehicleToDerail:''' The vehicle that you wish to derail.
*'''derailed:''' whether the train is derailed.
*'''derailed:''' whether the train is derailed.


===Returns===
===Returns===
Returns ''true'' if the state was successfully set
Returns ''true'' if the state was successfully set
==Example==
<section name="Example" class="server" show="true">
<syntaxhighlight lang="lua">
-- TODO
</syntaxhighlight>
</section>


==See Also==
==See Also==
{{Vehicle_functions}}
{{Vehicle_functions}}

Revision as of 17:40, 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


Example

Click to collapse [-]
Example
-- TODO


See Also