I’m currently trying to create a small system where I set up multiple switches for controlling lighting, and having a main breaker in each level that controls if each switch should be able to turn on a light.
I tried to do this by having the switch casting to the breaker to check the boolean “IsPowerOn”. If it’s true, it then allows itself to turn on the lights. It always checks if this is true, and the moment it’s false, it permanently toggles the lights off until the power is on again.
But I think I got the whole concept of casting wrong. I simply want the SwitchBP to be able to check if the power is on, which is decided by a boolean in the BreakerBP.
Here’s the blueprints.
So far I think I’ve got it right. I started with some keyboard inputs in the SwitchBP to control the power bool, and the light turned off and on when it was suppsoed to. But it’s about finding what I’m supposed to connect to the “object” in the Cast node.