Scripting/Squirrel/Functions/Pickups/Respawn

From VC-MP Wiki

Jump to: navigation, search

This instance variable respawns a pickup.

Syntax

int pickup.Respawn();

Example

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

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

Notes

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

Related Functions

Personal tools
squirrel scripting