Squirrel/Server/Events/Vehicle/onVehicleRespawn

From Liberty Unleashed Wiki
Revision as of 10:12, 9 January 2010 by Sephiroth (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This is called whenever a vehicle is respawned, for any reason EXCEPT respawn after explosion

Syntax

  1. function onVehicleRespawn( vehicle )

Parameters

  • vehicle - The vehicle pointer

Example

This example will print a message to the console whenever a vehicle is respawned

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

Notes

The function vehicle.ID was used in in this example. More info about it can be found in the corresponding page.

Related Events

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox