Scripting/Squirrel/Functions/Pickups/HideForPlayer

From VC-MP Wiki

Jump to: navigation, search

This instance variable will hide a pickup to a specified player.

Syntax

bool pickup.HideForPlayer( player pPlayer )

Example

In this example the pickup that is being created will disappear for the specified player.

function onPlayerCommand( player, cmd, text )
{
	if ( szCommand == "makepickup" )
	{
		local pPickup = CreatePickup( 336, pPlayer.Pos );
		pPickup.HideForPlayer( pPlayer );
	}
}

Notes

The function CreatePickup and call onPlayerCommand were used in in this example. More info about them in corresponding pages.

Related Functions

Personal tools
squirrel scripting