getPickupRespawnInterval
Client-side
Server-side
Shared
This page is incomplete! Help wanted!
Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.
Returns the time it takes before a pickup respawns after a player picked it up. The time is specified in milliseconds.
Syntax
getPickupRespawnInterval ( )Code Examples
server
This example outputs to the player that picked up the pickup, that it's not going to spawn again for another ... secs.
addEventHandler("onPickUpHit",root,function(player) outputChatBox("That pickup isn't going to be there until "..tostring(getPickupRespawnInterval(source)).." is done.",player)end)