Light source

I have a point light. How can I disable it in the game? I need that when you go to the switch and press the enter key, so that the light source is completely turned off and the room is like in the night. But then, and upon inclusion, a rebuild of objects must occur.

That is, to make it “Mobile”? And how to implement it, the fact is that I’m a beginner and don’t know how to implement it. I mean the on, off itself. I made door opening, completely copying how it was done on video. That is, you need to enable or disable effects world in the game?
Perhaps you can somehow refer to the id of the object? How can I see the id of the light bulb and cause the effects world in the game to be disabled?

Probably my question is stupid, but how do I open the level blueprint?

I did everything as you said, but after I did it nothing works

I apologize, apparently I did not rebuild, thank you so much, but I still need it to work only when you come to the switch.

I also have a blue print to open doors, and when I start the game and press enter, the light turns on and off, but when I go to the door and press enter, the door starts to open and close even when I’m far from it, and the light stops working at all. I have the same button that opens the door when you approach it in the project.

Thank you very much!!!
I think I’ll figure it out further.

What do I need to do so that others do not make the game for me, so that I myself can solve all the issues?

By the way, the only thing that does not suit me is that the light does not turn off completely, it turns off completely only after removing the light source and rebuild the objects

Is there anything you can do to turn off the light completely and turn it on?

I agree, I think over time I will learn how to solve all the problems myself, and there will be no such stupid questions.

Is it possible to somehow see the id of the object? And refer to the object through it?

I have already tried portability and it did not lead to new results. I think since in the project editing mode you need to reconfigure all the objects on the scene in order to calculate the darkness, then the same thing would have to be done in the game mode.

Well, in principle, if you can select an object and refer to it with the right mouse button in the blueprint of the level, then this is not necessary. I just worked in gms before, and there most often I worked through the id of the object. I would like not to change tactics. But this is probably even more convenient.


well, could you help me with something else. Here is the Blueprint of the door, which I need to change so that glitches do not occur, when I go to the door and press and then move away from colliding with it, then for some reason it still opens and closes, and the light stops working?

YES, thanks, the light is on, but the door still opens and closes wherever I am

It all worked! Great, I don’t know how to thank you, how difficult it is when you don’t know anything.

Everything is great, I enjoy the engine, but for some reason the main character’s sneakers glow in the dark. Exactly when he walks, even in a room where nothing is visible.