Class BaseVehicle
Abstract class for client-side vehicles
Assembly: SlipeClient.dll
Syntax
public class BaseVehicle : SharedVehicle
Constructors
|
Improve this Doc
View Source
BaseVehicle(VehicleModel, Vector3, Vector3, String, Int32, Int32)
Create a vehicle using all createVehicle arguments
Declaration
protected BaseVehicle(VehicleModel model, Vector3 position, Vector3 rotation, string numberplate = "", int variant1 = 1, int variant2 = 1)
Parameters
Properties
|
Improve this Doc
View Source
AdjustableProperty
Get and set the adjustable property (hydra jet, dozer front etc.)
Declaration
public int AdjustableProperty { get; set; }
Property Value
|
Improve this Doc
View Source
Components
Get an array of all the vehicle's components
Declaration
public Component[] Components { get; }
Property Value
|
Improve this Doc
View Source
Controler
Get the player controlling the vehicle in the drivers seat
Declaration
public Player Controler { get; }
Property Value
|
Improve this Doc
View Source
CurrentGear
Get the current gear of this vehicle
Declaration
public int CurrentGear { get; }
Property Value
|
Improve this Doc
View Source
Gravity
Get and set the direction in which the vehicle falls, also the cameras of any passengers will be rotated to match it.
Declaration
public Vector3 Gravity { get; set; }
Property Value
|
Improve this Doc
View Source
IsNitroRecharging
Get if the vehicle nitro is recharging
Declaration
public bool IsNitroRecharging { get; }
Property Value
|
Improve this Doc
View Source
NitroActivated
Get and set if the nitro is currently actived
Declaration
public bool NitroActivated { get; set; }
Property Value
|
Improve this Doc
View Source
NitroCount
Get and set the nitro count
Declaration
public int NitroCount { get; set; }
Property Value
|
Improve this Doc
View Source
NitroLevel
Get and set the level of nitro
Declaration
public float NitroLevel { get; set; }
Property Value
|
Improve this Doc
View Source
Occupants
Get a dictionary of players occupying this vehicle
Declaration
public Dictionary<Seat, Player> Occupants { get; }
Property Value
Methods
|
Improve this Doc
View Source
Blow()
Declaration
Returns
|
Improve this Doc
View Source
GetComponent(ComponentType, ComponentBase)
Get a specific component of this vehicle
Declaration
public Component GetComponent(ComponentType type, ComponentBase relativeTo = ComponentBase.root)
Parameters
Returns
|
Improve this Doc
View Source
GetOccupant(Seat)
This function gets the player sitting/trying to enter this vehicle.
Declaration
public Player GetOccupant(Seat seat = Seat.FrontLeft)
Parameters
Type |
Name |
Description |
Seat |
seat |
|
Returns
|
Improve this Doc
View Source
IsWheelOnGround(Wheel)
Check if a wheel is touching the ground
Declaration
public bool IsWheelOnGround(Wheel wheel)
Parameters
Type |
Name |
Description |
Wheel |
wheel |
|
Returns
|
Improve this Doc
View Source
isWindowOpen(Window)
Check if a window is open
Declaration
public bool isWindowOpen(Window window)
Parameters
Type |
Name |
Description |
Window |
window |
|
Returns
|
Improve this Doc
View Source
SetWindowOpen(Window, Boolean)
This function sets the vehicle window state.
Declaration
public bool SetWindowOpen(Window window, bool open)
Parameters
Returns
Events
|
Improve this Doc
View Source
OnCollision
Declaration
public event BaseVehicle.OnCollisionHandler OnCollision
Event Type
|
Improve this Doc
View Source
OnCollisionShapeHit
Declaration
public event BaseVehicle.OnCollisionShapeHitHandler OnCollisionShapeHit
Event Type
|
Improve this Doc
View Source
OnCollisionShapeLeave
Declaration
public event BaseVehicle.OnCollisionShapeLeaveHandler OnCollisionShapeLeave
Event Type
|
Improve this Doc
View Source
OnDamage
Declaration
public event BaseVehicle.OnDamageHandler OnDamage
Event Type
|
Improve this Doc
View Source
OnEnter
Declaration
public event BaseVehicle.OnEnterHandler OnEnter
Event Type
|
Improve this Doc
View Source
OnExit
Declaration
public event BaseVehicle.OnExitHandler OnExit
Event Type
|
Improve this Doc
View Source
OnExplode
Declaration
public event BaseVehicle.OnExplodeHandler OnExplode
Event Type
|
Improve this Doc
View Source
OnExplosion
Declaration
public event BaseVehicle.OnExplosionHandler OnExplosion
Event Type
|
Improve this Doc
View Source
OnNitroStateChange
Declaration
public event BaseVehicle.OnNitroStateChangeHandler OnNitroStateChange
Event Type
|
Improve this Doc
View Source
OnRespawn
Declaration
public event BaseVehicle.OnRespawnHandler OnRespawn
Event Type
|
Improve this Doc
View Source
OnStartEnter
Declaration
public event BaseVehicle.OnStartEnterHandler OnStartEnter
Event Type
|
Improve this Doc
View Source
OnStartExit
Declaration
public event BaseVehicle.OnStartExitHandler OnStartExit
Event Type
|
Improve this Doc
View Source
OnWeaponHit
Declaration
public event BaseVehicle.OnWeaponHitHandler OnWeaponHit
Event Type
|
Improve this Doc
View Source
OnWorldSound
Declaration
public event BaseVehicle.OnWorldSoundHandler OnWorldSound
Event Type
Extension Methods