OnVehicleRespawn: Difference between revisions
Jump to navigation
Jump to search
This wiki is using an old backup from 2020
Some information may be old/missing
(Created page with "This event is called when a vehicle is respawned. == Syntax == <pre>onVehicleRespawn( vehicle )</pre> == Arguments == * ''CVehicle'' '''vehicle''' - The vehicle instance, or...") |
No edit summary |
||
Line 11: | Line 11: | ||
Message( vehicle.ID + " respawned!"); | Message( vehicle.ID + " respawned!"); | ||
}</pre> | }</pre> | ||
== Related Functions == | |||
{{Scripting/Squirrel/Events/Vehicle_Events}} | |||
[[Category:Scripting/Squirrel/Events/Vehicle_Events]] |
Latest revision as of 22:21, 30 January 2017
This event is called when a vehicle is respawned.
Syntax
onVehicleRespawn( vehicle )
Arguments
- CVehicle vehicle - The vehicle instance, or the vehicle which is being respawned.
Example
function onVehicleRespawn( vehicle ) { Message( vehicle.ID + " respawned!"); }
Related Functions
- onPlayerEnteringVehicle( player, vehicle, door )
- onPlayerEnterVehicle( player, vehicle, door )
- onPlayerExitVehicle( player, vehicle )
- onVehicleExplode( vehicle )
- onVehicleRespawn( vehicle )
- onVehicleHealthChange( vehicle, oldHP, newHP )
- onVehicleMove( vehicle, lastX, lastY, lastZ, newX, newY, newZ )