For the next phase of the game, we’ll make it so that you can have multiple dig spots, but only one has treasure. First, we’ll make it possible for a spot NOT to have treasure.
- In the DigSpotScript, create a new variable called hasTreasure and set it to false.
- Inside the if-statement that checks if the entity is a player, create another if statement that checks if the hasTreasure variable is true.
- Put all the code to send the event to the chest inside of this if statement, and indent it correctly.