Intro to 3D Game Development

0 of 193 lessons complete (0%)

Scripting Part 3: Finishing the Game Loop

Challenge: Send an Event from the onTriggerEnter Function to the Chest

You don’t have access to this lesson

Please register or sign in to access the course content.

Just like with the chest lid, we need a function that starts the whole chest’s animation. 

  • Use the get method to find the Entity associated with the EntityRef
  • Use an if-statement to check that Entity isn’t null
  • Send an event to the chest with an input of the name of the function to you created in the last challenge.

Remember to look at your ChestScript to see how you have done something similar before.