Scripting/Squirrel/Functions/Pickups/RespawnTime

From VC-MP Wiki

Jump to: navigation, search

This instance variable respawns a pickup after a given period of time.

Syntax

int pickup.ID

Example

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

function onPickupPickedUp( player, pickup )
{
     pickup.RespawnTime = 3;
}

Notes

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

Related Functions

Personal tools
squirrel scripting