OnVehicleExplode: Difference between revisions

From Vice City Multiplayer
Jump to navigation Jump to search
Caution icon
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 gets exploded. == Syntax == <pre>onVehicleExplode( vehicle )</pre> == Arguments == * ''CVehicle'' '''vehicle''' - The vehicle instance, o...")
 
No edit summary
 
Line 11: Line 11:
Message( vehicle.ID + ", " + GetVehicleNameFromModel( vehicle.Model ) + " got exploded.");
Message( vehicle.ID + ", " + GetVehicleNameFromModel( vehicle.Model ) + " got exploded.");
}</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 gets exploded.

Syntax

onVehicleExplode( vehicle )

Arguments

  • CVehicle vehicle - The vehicle instance, or, the vehicle which got exploded.

Example

function onVehicleExplode( vehicle ) {
Message( vehicle.ID + ", " + GetVehicleNameFromModel( vehicle.Model ) + " got exploded.");
}

Related Functions