OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: DoDgY on 30 Oct 2005, 15:30:57

Title: Streetlight
Post by: DoDgY on 30 Oct 2005, 15:30:57
I have a very quick question to ask. I searched and have definitely seen topics on this before but I couldn't come up with anything.

In the town of Laruns in Everon there is a streetlight that I want to turn off (setdamage 1, I guess) when a trigger is activated.

The streetlight's ID is 8191 but I can't find a way to turn it off. I've tried the nearestobject and nearestbuilding commands but they don't seem to work the way I'm doing it. I've probably done it wrong.

The light I want to "turn off" is built into the map and not an addon.

Is there any way of doing this?

Thanks.
Title: Re:Streetlight
Post by: THobson on 30 Oct 2005, 15:32:37
(object 8191) switchlight "OFF"
Title: Re:Streetlight
Post by: DoDgY on 30 Oct 2005, 15:39:18
Just found it and wanted to reply to say so. Thanks anyway.