Header Ads

Simple light switch system


How to make a simple light switch system in UE4:

1) First create a "Point Light" and place it randomly on the map
2) Place a "Trigger Volume" from "Volumes"
3) Select the "Point Light" that you added in your map, open Blueprint and right click on the window and select "Create a Reference to Point Light"; now do the same for your "Trigger Volume"
4) Right click again on the window and add "Is Visible" component from "Rendering" ( if you can't find it be sure that you uncheck "Context Sensitive")
5) Select the "Trigger Volume", right click on the Blueprint window and from the "Add Event for Trigger Volume" -> "Collision" select "Add on Actor Begin Overlap" and "Add on Actor End Overlap"
6) Connect the lines like in the picture below




Creating a input to control a Class Blueprint

1) Create a "New Empty Blueprint Class"
2) Pick the "Actor Class"
3) In the viewport add a "Point Light" and a "Trigger Volume" as components
4) In the "Event Graph" drag and drop the "Point Light" on the window and select "Get"
5) Build and connect the lines like in the picture below


No comments

Powered by Blogger.