SetTrainDerailable: 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 derailable. ==Syntax== <syntaxhighlight lang="lua"> void setTrainDerailable ( vehicle derailab...)
 
No edit summary
Line 2: Line 2:
[[Category:Needs_Example]]
[[Category:Needs_Example]]
{{Server client function}}
{{Server client function}}
This function will set a train or tram as derailable.
This function will set a train or tram as derailable. This is, if it can derail when it goes above the maximum speed.


==Syntax==  
==Syntax==  

Revision as of 00:01, 6 March 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

void 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