onVehicleRespawn
From Liberty Unleashed Wiki
This is called whenever a vehicle is respawned.
Syntax
function onVehicleRespawn( Vehicle vehicle )
Arguments
- vehicle - The vehicle which respawned
Returns
This event does not handle return values.
Example
This example will print a message to the console whenever a vehicle respawns.
function onVehicleRespawn( vehicle ) { print( "Vehicle " + vehicle.ID + " has respawned." ); 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.