Home Unity

check if spawn point is occupied

Does anybody know the best way for me to check if a spawn point is occupied?

Basically I have a script which will spawn a pickup at a random spawn point. As it stands this will keep spawning them regardless of whether there is one there or not so I end up with multiple pickups on each spawn instead of just a single pickup.
I just need to be able to check if there is already a pickup at the spawn point if there is move to the next random location.

Replies

Sign In or Register to comment.