onVehicleRespawn

From Liberty Unleashed Wiki
Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

This is called whenever a vehicle is respawned.

Syntax

  1. 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.

  1.  
  2. function onVehicleRespawn( vehicle )
  3. {
  4. print( "Vehicle " + vehicle.ID + " has respawned." );
  5. return 1;
  6. }
  7.  

Notes

The functions Vehicle.ID and print were used in this example. More info about them can be found in the corresponding pages.

Related Events

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox