SetTrainDerailable: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
m (void -> bool)
Line 6: Line 6:
==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
void setTrainDerailable ( vehicle derailableVehicle, bool derailable )               
bool setTrainDerailable ( vehicle derailableVehicle, bool derailable )               
</syntaxhighlight>  
</syntaxhighlight>  



Revision as of 19:39, 6 April 2009

This function will set a train or tram as derailable. This is, if it can derail when it goes above the maximum speed.

Syntax

bool setTrainDerailable ( vehicle derailableVehicle, bool derailable )              

Required Arguments

  • derailableVehicle: The vehicle that you wish to set derailable.
  • derailable: whether the train or tram is derailable. True as derailable, False as non-derailable.

Returns

Returns true if the state was successfully set, false otherwise.

Example

Click to collapse [-]
Example
-- TODO

See Also