Scripting/Squirrel/Events/Player/onPlayerFall

From VC-MP Wiki

Jump to: navigation, search

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

Personal tools
squirrel scripting