SetTrainDerailed: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
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==
==Example==
Line 24: Line 22:
</syntaxhighlight>
</syntaxhighlight>
</section>
</section>


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

Revision as of 17:03, 11 December 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