Hi. You need to use GetConnected method. This method gives you all actors “connected” to an actor. IsConnected also uses this method internally.
How you use it and when you call it depends on your implementation. For example, you can use GetConnected when you turn your battery on and then find all actors connected to the battery. I use the function like in the screenshot bellow:
You call it with your battery, and it will use GetConnected recursively, then return all actors connected to the battery, directly or via other actors. Then you can filter the list to choose only the actors you are interested in, like the lights, and turn them on.
I use this to make a prototype of modular cars and drones and stuff like that. I have different motors and thrusters and then a “computer”. When I turn the computer on it will use the BP above to discover all stuff it’s connected to and then command them. You can check those examples on my twitter:
https://twitter.com/games_inu/status…26547329556480
https://twitter.com/games_inu/status…05175126126592
https://twitter.com/games_inu/status…06946252218368
https://twitter.com/games_inu/status…68511849660417
