hokum15 2 Posted August 25, 2008 I've done a search for "lights" and "street lamps" but didnt find much. I've got a mission where i knock out a towns power and the lights go off. Does anyone know how to do this? Share this post Link to post Share on other sites
CarlGustaffa 4 Posted August 26, 2008 I think there exist such an addon (or scripted add-in) that will do what you want, simulating powergrids around Sahrani. Also have a look at the Biki nearObject type of commands, if I remember correctly there are examples there to turn on or off lights based on these commands. Share this post Link to post Share on other sites
Boborish 1 Posted August 26, 2008 First you need to locate the lamp object with nearestObject, then you switch the light off with switchLight. Share this post Link to post Share on other sites
Cloughy 0 Posted August 26, 2008 This topic is where you will find the electrical grid script. If you dont want the player to take out the sub station, just destroy it at the start of the mission. Cheers GC Share this post Link to post Share on other sites
chris330 0 Posted August 27, 2008 There is indeed a complex script you can get at OFPEC which has this capability. Do a quick search there. It links the light's status to the status of local substations. Great idea. Share this post Link to post Share on other sites