BaseVehicle Methods |
The BaseVehicle type exposes the following members.
Name | Description | |
---|---|---|
AddComponent |
Adds a 'component' (often referred to as a 'mod' (modification)) to this Vehicle.
| |
AssertNotDisposed |
Checks whether this instance has been disposed. If it has, it throws an exception.
(Inherited from Disposable.) | |
ChangeColor |
Change this BaseVehicle's primary and secondary colors.
| |
ChangePaintjob |
Change this BaseVehicle's paintjob (for plain colors see ChangeColor(Int32, Int32)).
| |
Create |
Creates a BaseVehicle in the world.
| |
CreateStatic(VehicleModelType, Vector3, Single, Int32, Int32) |
Creates a static BaseVehicle in the world.
| |
CreateStatic(VehicleModelType, Vector3, Single, Int32, Int32, Int32, Boolean) |
Creates a static BaseVehicle in the world.
| |
Dispose |
Performs tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from Disposable.) | |
Dispose(Boolean) |
Removes this instance from the pool.
(Overrides IdentifiedPoolTInstanceDispose(Boolean).) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize |
Finalizes an instance of the Disposable class.
(Inherited from Disposable.) | |
GetComponentInSlot |
Retrieves the installed component ID from this BaseVehicle in a specific slot.
| |
GetComponentType |
Find out what type of component a certain ID is.
| |
GetDamageStatus |
Retrieve the damage statuses of this BaseVehicle.
| |
GetDistanceFromPoint |
This function can be used to calculate the distance (as a float) between this BaseVehicle and
another
map coordinate.
This can be useful to detect how far a vehicle away is from a location.
| |
GetDoorsParameters(Boolean, Boolean, Boolean, Boolean) |
Gets the doors parameters.
| |
GetDoorsParameters(VehicleParameterValue, VehicleParameterValue, VehicleParameterValue, VehicleParameterValue) |
Gets the doors parameters.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetModelInfo |
Retrieve information about a specific vehicle model such as the size or position of seats.
| |
GetParameters(Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean) |
Gets this BaseVehicle's parameters.
| |
GetParameters(VehicleParameterValue, VehicleParameterValue, VehicleParameterValue, VehicleParameterValue, VehicleParameterValue, VehicleParameterValue, VehicleParameterValue) |
Gets this BaseVehicle's parameters.
| |
GetRotationQuat |
Returns this BaseVehicle's rotation on all axis as a quaternion.
| |
GetRotationQuat(Single, Single, Single, Single) |
Returns this BaseVehicle's rotation on all axis as a quaternion.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetWindowsParameters(Boolean, Boolean, Boolean, Boolean) |
Gets the windows parameters.
| |
GetWindowsParameters(VehicleParameterValue, VehicleParameterValue, VehicleParameterValue, VehicleParameterValue) |
Gets the windows parameters.
| |
Initialize |
An overloadable point for initialization logic which requires the Id to be set.
(Inherited from IdentifiedPoolTInstance.) | |
IsStreamedIn |
Checks if this BaseVehicle is streamed in for a BasePlayer.
| |
LinkToInterior |
Links this BaseVehicle to the interior. This can be used for example for an arena/stadium.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OnDamageStatusUpdated |
Raises the DamageStatusUpdated event.
| |
OnDeath |
Raises the Died event.
| |
OnMod |
Raises the Mod event.
| |
OnPaintjobApplied |
Raises the PaintjobApplied event.
| |
OnPlayerEnter |
Raises the PlayerEnter event.
| |
OnPlayerExit |
Raises the PlayerExit event.
| |
OnResprayed |
Raises the Resprayed event.
| |
OnSirenStateChanged |
Raises the SirenStateChanged event.
| |
OnSpawn |
Raises the Spawn event.
| |
OnStreamIn |
Raises the StreamIn event.
| |
OnStreamOut |
Raises the StreamOut event.
| |
OnTrailerUpdate |
Raises the TrailerUpdate event.
| |
OnUnoccupiedUpdate |
Raises the UnoccupiedUpdate event.
| |
RemoveComponent |
Remove a component from the BaseVehicle.
| |
Repair |
Fully repairs this BaseVehicle, including visual damage (bumps, dents, scratches, popped tires
etc.).
| |
Respawn |
Sets this BaseVehicle back to the position at where it was created.
| |
SetAngularVelocity |
Sets the angular velocity of this BaseVehicle.
| |
SetDoorsParameters(Boolean, Boolean, Boolean, Boolean) |
Sets the doors parameters.
| |
SetDoorsParameters(VehicleParameterValue, VehicleParameterValue, VehicleParameterValue, VehicleParameterValue) |
Sets the doors parameters.
| |
SetNumberPlate |
Set this BaseVehicle's numberplate, which supports olor embedding.
| |
SetParameters(Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean) |
Sets this BaseVehicle's parameters for all players.
| |
SetParameters(VehicleParameterValue, VehicleParameterValue, VehicleParameterValue, VehicleParameterValue, VehicleParameterValue, VehicleParameterValue, VehicleParameterValue) |
Sets this BaseVehicle's parameters for all players.
| |
SetParametersForPlayer |
Set the parameters of this BaseVehicle for a BasePlayer.
| |
SetWindowsParameters(Boolean, Boolean, Boolean, Boolean) |
Sets the windows parameters.
| |
SetWindowsParameters(VehicleParameterValue, VehicleParameterValue, VehicleParameterValue, VehicleParameterValue) |
Sets the windows parameters.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
UpdateDamageStatus |
Sets the various visual damage statuses of this BaseVehicle, such as popped tires, broken lights and
damaged panels.
|