Squirrel/Server/Events/Vehicle/onVehicleRespawn

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(New page: __NOTOC__ This is called whenever a vehicle is respawned, for any reason EXCEPT respawn after explosion == Syntax == <code>function onVehicleRespawn( vehicle )</code> == Parameters == ...)

Revision as of 10:12, 9 January 2010

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