onVehicleRespawn

From Liberty Unleashed Wiki
Revision as of 13:14, 11 November 2010 by Juppi (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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