week 9


Outline

Despite only having to complete 3 tasks, I decided to try and create a light switch due to give myself a challenge. 

Progress

To do this I first created a lights interface and created a function called toggle lights. I then created a new actor blueprint to give the light swich a static mesh and start the code for it. 

The first thing to code was getting access to all light at once in order to turn them all on or off at the same time. 

This gets all the actors of the light class I made.

I then added a box collision to the light switch and used a gate that opens and closes depending on where the player is. The code then gets the light index from both the loop and switch and checks if it is the same.


Useful Links

https://www.youtube.com/watch?v=vtqDWTIJITU

Leave a comment

Log in with itch.io to leave a comment.