Class Siren
Represents a single siren point
Inherited Members
Namespace: Slipe.Shared.Vehicles
Assembly: SlipeShared.dll
Syntax
public class Siren
Constructors
| Improve this Doc View SourceSiren(SharedVehicle, Int32, Vector3, Color, Single, Boolean)
Build a vehicle siren
Declaration
public Siren(SharedVehicle vehicle, int point, Vector3 position, Color color, float minAlpha = 0F, bool updateOnConstruct = true)
Parameters
Type | Name | Description |
---|---|---|
SharedVehicle | vehicle | |
Int32 | point | |
Vector3 | position | |
Color | color | |
Single | minAlpha | |
Boolean | updateOnConstruct |
Properties
| Improve this Doc View SourceColor
Set the color of this siren, including alpha
Declaration
public Color Color { get; set; }
Property Value
Type | Description |
---|---|
Color |
MinimalAlpha
The minimum alpha of the light during day time
Declaration
public float MinimalAlpha { get; set; }
Property Value
Type | Description |
---|---|
Single |
Position
Set the relative position of this siren from the center of the vehicle
Declaration
public Vector3 Position { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
Methods
| Improve this Doc View SourceUpdateThisSiren()
Declaration
protected void UpdateThisSiren()