/// <summary> /// Build a vehicle siren /// </summary> public Siren(SharedVehicle vehicle, int point, Vector3 position, Color color, float minAlpha = 0.0f, bool updateOnConstruct = true) { this.vehicle = vehicle; this.point = point; this.position = position; this.color = color; this.minAlpha = minAlpha; if (updateOnConstruct) { UpdateThisSiren(); } }
/// <summary> /// Create a sirens set attached to a vehicle /// </summary> public SharedSirens(SharedVehicle vehicle) { this.vehicle = vehicle; UpdateParams(); }
/// <summary> /// Detach a towed vehicle if any /// </summary> public bool DetachTowedVehicle(SharedVehicle attachedVehicle) { return(MtaShared.DetachTrailerFromVehicle(element, attachedVehicle.MTAElement)); }
/// <summary> /// Builds vehicle handling from a vehicle /// </summary> public Handling(SharedVehicle vehicle) { vehicleElement = vehicle.MTAElement; }