Home   Help Search Login Register  

Author Topic: Turn Off Lights?  (Read 733 times)

0 Members and 2 Guests are viewing this topic.

Britboy

  • Guest
Turn Off Lights?
« on: 27 Dec 2002, 21:24:53 »
Is there anyway to turn town lights off? I want to be able to blow a power station and then the lights go off to allow special ops to take over a town and place cahrges.

I want it at night so they are always on to start with.

Tipigi

  • Guest
Re:Turn Off Lights?
« Reply #1 on: 28 Dec 2002, 11:50:41 »
I'm not sure how to do this to the lights that are already on the map, but I did do something similar to what you're trying to do.  I had the players use a boat to get to a tiny, enemy island.  I placed the streetlight addons all around the island with the "light1 InFlame True" in the Init field.  I placed a small building and labeled it "Generator Shed" with a marker on the map.  A trigger detected when the building was destroyed and then changed all the lights to InFlame False.  It worked great.

You might try to do this in a city that doesn't start with lights.

Hope this helps!

frag

  • Guest
Re:Turn Off Lights?
« Reply #2 on: 28 Dec 2002, 22:09:43 »
In the editor, find the exact number of the streetlamp object (click on show ID in the editor).

As soon as you find the object id, you can turn off the light that way: (Exemple of the streetlamp in gravette on Everon Island)

object [objectid] switchlight "OFF"

Example: object 8193 switchlight "OFF"

...and you now have a town dark as hell ;)

frag

  • Guest
Re:Turn Off Lights?
« Reply #3 on: 28 Dec 2002, 22:11:46 »
By the way, anyone tried to switchoff the light on an M2 manchinegun at night...it make the game crash to desktop.

Example : myM2 switchlight "OFF"

Is anyone can try it for me and tell me if they have the same result?

I have Resistance and 1.90...