Scripting/Squirrel/Functions/Pickups/SetGlobalPickupRespawnTime

From VC-MP Wiki

Jump to: navigation, search

This function sets the global respawning time for pickups. If the time is set to 0 pickups will respawn immediately (unless pickup.RespawnTime is used).

Syntax

bool SetGlobalPickupRespawnTime( int time )

Arguments

time - The respawn time in seconds.

Example

This example script sets pickup respawn time to 0 (instant respawn).

function onServerStart()
{
     SetGlobalPickupRespawnTime( 0 );
}

Notes

The call onServerStart was used in this example. More info about this in the corresponding page.

Related Functions

Personal tools
squirrel scripting