Class Train
Assembly: SlipeServer.dll
Syntax
public class Train : BaseVehicle
Constructors
|
Improve this Doc
View Source
Train(TrainModel, Vector3)
Create a plane from a model at a position
Declaration
public Train(TrainModel model, Vector3 position)
Parameters
|
Improve this Doc
View Source
Train(TrainModel, Vector3, Vector3, String, Int32, Int32)
Create a plane using all createVehicle arguments
Declaration
public Train(TrainModel model, Vector3 position, Vector3 rotation, string numberplate = "", int variant1 = 1, int variant2 = 1)
Parameters
Properties
|
Improve this Doc
View Source
Derailable
Get and set if this train is derailable
Declaration
public bool Derailable { get; set; }
Property Value
|
Improve this Doc
View Source
Derailed
Get and set if this train is derailed
Declaration
public bool Derailed { get; set; }
Property Value
|
Improve this Doc
View Source
DirectionClockwise
Get and set the direction of the train
Declaration
public bool DirectionClockwise { get; set; }
Property Value
|
Improve this Doc
View Source
Speed
Get and set the speed of the train
Declaration
public float Speed { get; set; }
Property Value
|
Improve this Doc
View Source
TrackPosition
Get and set the position of the train on its current track (0 - 18107 a complete way round)
Declaration
public float TrackPosition { get; set; }
Property Value
Operators
|
Improve this Doc
View Source
Explicit(Vehicle to Train)
Declaration
public static explicit operator Train(Vehicle vehicle)
Parameters
Type |
Name |
Description |
Vehicle |
vehicle |
|
Returns
Extension Methods