Squirrel/Server/Events/Vehicle/onVehicleRespawn
From Liberty Unleashed Wiki
(Difference between revisions)
(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
function onVehicleRespawn( vehicle )
Parameters
- vehicle - The vehicle pointer
Example
This example will print a message to the console whenever a vehicle is respawned
function onVehicleRespawn( vehicle ) { print( "Vehicle " + vehicle.ID() + " has respawned." ); }
Notes
The function vehicle.ID was used in in this example. More info about it can be found in the corresponding page.