0 of 193 lessons complete (0%)
Exit Course
Scripting Part 2: Making Code Respond to Players

Change the Chest Script’s Send Event

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

Since you have both renamed the startLidAnimation function and added that it needs an input for the direction parameter, we need to fix the code the chestScript

  1. Open chestScript and find the moveChest function.
  2. Change “startLidOpeningAnimationg” to “startLidAnimation”.
  3. Add a , comma.

Add “open” to send the direction along.