Now we have code to move the chest to a position, but we aren’t giving it a position to move to yet. For this we need to return to the DigSpotScript, and send that as an additional input in the sendEvent method.
- In the DigSpotScript, find the chest.sendEvent line.
- Add a , comma after the “startDiggingUpChestAnimation” string, and add this entity’s world position as an input.
- Save and test that when you walk up to the Dig Spot, the chest comes out of the ground at its position.