Intro to 3D Game Development

0 of 193 lessons complete (0%)

Scripting Part 2: Making Code Respond to Players

Let the Chest Reference the Chest Lid

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

To be able to send a signal from the chest to the lid, we will need a reference, a way to talk about that entity in code. For this, we use the EntityRef type. 

  1. Create a new public variable above the start function called chestLidRef
  2. Set the variable to new EntityRef()