Class Trailer
Represents a towable trailer
Assembly: SlipeServer.dll
Syntax
public class Trailer : BaseVehicle
Constructors
|
Improve this Doc
View Source
Trailer(TrailerModel, Vector3)
Create a plane from a model at a position
Declaration
public Trailer(TrailerModel model, Vector3 position)
Parameters
|
Improve this Doc
View Source
Trailer(TrailerModel, Vector3, Vector3, String, Int32, Int32)
Create a plane using all createVehicle arguments
Declaration
public Trailer(TrailerModel model, Vector3 position, Vector3 rotation, string numberplate = "", int variant1 = 1, int variant2 = 1)
Parameters
Properties
|
Improve this Doc
View Source
TowingVehicle
Get and set the vehicle towing this trailer
Declaration
public BaseVehicle TowingVehicle { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
AttachTo(BaseVehicle)
Attach this trailer to a vehicle
Declaration
public bool AttachTo(BaseVehicle vehicle)
Parameters
Returns
Events
|
Improve this Doc
View Source
OnAttach
Declaration
public event Trailer.OnAttachHandler OnAttach
Event Type
|
Improve this Doc
View Source
OnDetach
Declaration
public event Trailer.OnDetachHandler OnDetach
Event Type
Operators
|
Improve this Doc
View Source
Explicit(Vehicle to Trailer)
Declaration
public static explicit operator Trailer(Vehicle vehicle)
Parameters
Type |
Name |
Description |
Vehicle |
vehicle |
|
Returns
Extension Methods