OnPlayerExitVehicle: Difference between revisions
Jump to navigation
Jump to search
This wiki is using an old backup from 2020
Some information may be old/missing
No edit summary |
No edit summary |
||
Line 15: | Line 15: | ||
} | } | ||
</source> | </source> | ||
== Related Functions == | |||
{{Scripting/Squirrel/Events/Vehicle_Events}} | |||
[[Category:Scripting/Squirrel/Events/Vehicle_Events]] |
Latest revision as of 22:22, 30 January 2017
This event is called when a player exits a Vehicle.
Syntax
onPlayerExitVehicle( player, vehicle )
Arguments
- CPlayer player - The player instance, or, the one who is exiting the vehicle.
- CVehicle player - The vehicle instance, or, the vehicle which is being exited by the player.
Example
function onPlayerExitVehicle( player, vehicle )
{
Message( player.Name + " has exited " + GetVehicleNameFromModel( vehicle.Model ) + "." );
}
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 )