Intro to 3D Game Development

0 of 193 lessons complete (0%)

Scripting Part 3: Finishing the Game Loop

Challenge: Give the DigSpotScript an EntityRef to the TreasureChest

You don’t have access to this lesson
Please register or sign in to access the course content.

To be able to dig up the chest, we will need a reference to it. Create an EntityRef for the Chest in the DigSpotScript, and assign it to the Chest-Bottom in the Entity panel. You can check back to how you gave your ChestScript a reference to the chest lid for an example of how you have done this before.