IsTrainDerailable: 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 check if a train or tram is derailable. ==Syntax== <syntaxhighlight lang="lua"> bool isTrainDerailable ( vehicle vehi...)
 
No edit summary
Line 1: Line 1:
__NOTOC__  
__NOTOC__  
[[Category:Needs_Example]]
{{Server client function}}
{{Server client function}}
This function will check if a train or tram is derailable.
This function will check if a train or tram is derailable.
Line 11: Line 10:
===Required Arguments===  
===Required Arguments===  
*'''vehicleToCheck:''' The vehicle you wish to check.
*'''vehicleToCheck:''' The vehicle you wish to check.


===Returns===
===Returns===
Returns ''true'' if the train is derailable, ''false'' otherwise.
Returns ''true'' if the train is derailable, ''false'' otherwise.


==Example==
==Example==
Line 23: Line 20:
</syntaxhighlight>
</syntaxhighlight>
</section>
</section>


==See Also==
==See Also==
{{Vehicle_functions}}
{{Vehicle_functions}}
[[Category:Needs_Example]]

Revision as of 17:32, 7 August 2009

This function will check if a train or tram is derailable.

Syntax

bool isTrainDerailable ( vehicle vehicleToCheck )              

Required Arguments

  • vehicleToCheck: The vehicle you wish to check.

Returns

Returns true if the train is derailable, false otherwise.

Example

Click to collapse [-]
Example
-- TODO

See Also