onVehicleWrecked
From Liberty Unleashed Wiki
This is called whenever a vehicle is wrecked.
Syntax
function onVehicleWrecked( Vehicle vehicle )
Arguments
- vehicle - The vehicle which was wrecked
Returns
This event does not handle return values.
Example
This example will print a message to the console whenever someone wrecks a vehicle.
function onVehicleWrecked( vehicle ) { print( "Vehicle " + vehicle.ID + " was wrecked." ); return 1; }
Notes
The functions Vehicle.ID and print were used in this example. More info about them can be found in the corresponding pages.