Scripting/Squirrel/Functions/Pickups/Remove

From VC-MP Wiki

Jump to: navigation, search

This instance variable removes a pickup.

Syntax

int pickup.ID

Example

This example will remove the pickup that the player has just hit.

function onPickupPickedUp( player, pickup )
{
     pickup.Remove();
}

Notes

The call onPickupPickedUp was used in in this example. More info about thiz in corresponding pages.

Related Functions

Personal tools
squirrel scripting