# How do I create a light switch?

**URL:** <https://forums.unrealengine.com/t/how-do-i-create-a-light-switch/20431>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [February 6, 2015, 6:51am UTC](https://forums.unrealengine.com/t/how-do-i-create-a-light-switch/20431 "2015-02-06T06:51:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DontFeedTheBair](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DontFeedTheBair](https://forums.unrealengine.com/u/DontFeedTheBair)\
**Post date:** [February 6, 2015, 6:51am UTC](https://forums.unrealengine.com/t/how-do-i-create-a-light-switch/20431/1 "2015-02-06T06:51:26Z")

</div>

I’m trying to create a light switch. I already have an object (rock) that when the character walks up to it it says “Press F to turn on lights”. How to I make it so that when the character does press F a light source will be turned on. I want the character to be able to turn the light on and off as long as they are near the rock. Pictured is what I have so far with my blueprint. Any and all help would be greatly appreciated. Thank you for your time.

---

<div class="post-metadata">

**Author:** ![Fen](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/fen/32/635651_2.png) [@Fen](https://forums.unrealengine.com/u/Fen)\
**Post date:** [February 6, 2015, 7:56am UTC](https://forums.unrealengine.com/t/how-do-i-create-a-light-switch/20431/2 "2015-02-06T07:56:57Z")

</div>

Hello,  
Here are tutorials to help you :

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

and a video : [A new, community-hosted Unreal Engine Wiki - Announcements and Releases - Unreal Engine Forums](https://wiki.unrealengine.com/Introduction_to_Blueprints_-)_2_-\_Turning\_On\_a\_Light\_with\_Level\_Blueprint from [A new, community-hosted Unreal Engine Wiki - Announcements and Releases - Unreal Engine Forums](https://wiki.unrealengine.com/Introduction_to_Blueprints_Playlist)

---

<div class="post-metadata">

**Author:** ![DontFeedTheBair](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DontFeedTheBair](https://forums.unrealengine.com/u/DontFeedTheBair)\
**Post date:** [February 7, 2015, 9:16am UTC](https://forums.unrealengine.com/t/how-do-i-create-a-light-switch/20431/3 "2015-02-07T09:16:49Z")

</div>

Thank you very much for the information. It was extremely helpful.
