- Documentation
- Server functions
- isPickupSpawned
Function
isPickupSpawned
Checks whether a pickup is currently visible and collectable (rather than waiting to come back after being collected).
Syntax
bool isPickupSpawned(pickup thePickup)Arguments
thePickuppickup- The pickup.
Returns
true when the pickup is available.
Example
local pickup = createPickup(0, 0, 3, 0, 100)
outputDebugString(isPickupSpawned(pickup) and "Dostepny" or "Czeka")