SetTrainDerailable

From Multi Theft Auto: Wiki
Revision as of 17:08, 5 March 2009 by Mekorea (talk | contribs) (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...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function will set a train or tram as derailable.

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