Click or drag to resize

BaseModeVehicleDied Event

Occurs when the OnVehicleDied(BaseVehicle, PlayerEventArgs) callback is being called. This callback is called when a vehicle is destroyed - either by exploding or becoming submerged in water.

Namespace:  SampSharp.GameMode
Assembly:  SampSharp.GameMode (in SampSharp.GameMode.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
public event EventHandler<PlayerEventArgs> VehicleDied

Value

Type: SystemEventHandlerPlayerEventArgs
Remarks
This callback will also be called when a vehicle enters water, but the vehicle can be saved from destruction by teleportation or driving out (if only partially submerged). The callback won't be called a second time, and the vehicle may disappear when the driver exits, or after a short time.
See Also