Scripting/Server/Classes/Pickup/Remove

Delete the pickup / bring it back now.

Syntax

pickup.Remove()
pickup.Respawn()

Example

function onPlayerCommand( player, cmd, params )
{
	if ( cmd == "remove" )
	{
		// pickup is a pickup handle (see Pickup)
		pickup.Remove();
	}
}

This sample was generated from the signature – adapt the values to your gamemode.

Section: Pickup

Categories: Server methods | Pickup