Simulate level powercut

Hi all, I’m new to this but could someone point me in the right direction to have a random power cut ? I’d like every light to go off inside my building except my directional light (Moon).

Cheers

1 Like

You could just do a GetAllActorsOfClass to find your streetlights ( or whatever ), and then call the ‘off’ custom event ( assuming they are blueprints ).

Technically, the best way to do this is with an event dispatcher, but it really depends how many you have in the level.

4 Likes

brill thankyou so much

2 Likes

You could also make it look very real, by having a random delay for each light. That would be in the light BP custom event.

3 Likes

Thankyou, ill probably need help with the script as I’m terrible and new haha, I’ve got the blueprint so ill start with that

2 Likes