isPickupSpawned
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.
This function checks if a pickup is currently spawned (is visible and can be picked up) or not (a player picked it up recently).
Syntax
isPickupSpawned ( )Code Examples
server
This example outputs to the player that' using the pick that the pickup is either available/unavailable.
addEventHandler("onPickupUse",root,function(player) if(isPickupSpawned(source))then outputChatBox("The pickup your using is now available to use pick up again.",player) else outputChatBox("This pickup might be the last pickup to use ever again.",player) endend)