Scripting/Squirrel/Events/Player/onPlayerFall
From VC-MP Wiki
NOTE: This function has been added in VC:MP 0.3z r2. It will not work in previous versions.
This event is called when a player falls of a bike or is knocked down by a shotgun/rocket or similar.
Syntax
function onPlayerFall( player )
Parameters
- player - The pointer of the player
Example
This will send a message every time the player falls.
function onPlayerFall( player ) { ClientMessage( "FAIL", player, 255, 0, 0 ); }
Notes
The function ClientMessage was used in in this example. More info about it in the corresponding pages.
Related Events
- onPlayerJoin
- onPlayerPart
- onPlayerCrashDump
- onPlayerSpawn
- onPlayerDeath
- onPlayerKill
- onPlayerTeamKill
- onPlayerChat
- onPlayerAction
- onPlayerPM
- onPlayerFailedPM
- onPlayerTeamChat
- onPlayerCommand
- onPlayerHealthChange
- onPlayerArmourChange
- onPlayerWeaponChange
- onPlayerCashChange
- onPlayerScoreChange
- onPlayerKeyStateChange
- onPlayerMove
- onPlayerRequestClass
- onPlayerRequestAmmunation
- onPlayerRequestAmmuWeapon
- onPlayerStartSpectating
- onPlayerExitSpectating
- onPlayerRconLogin
- onPlayerRconLoginAttempt
- onPlayerFall
- onPlayerVersion
